Skip to content

Commit

Permalink
Fix attach issue
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <[email protected]>
  • Loading branch information
apostasie committed Feb 13, 2025
1 parent fde9d97 commit 21445d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/container/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"errors"
"fmt"
"os"

"github.com/containerd/console"
containerd "github.com/containerd/containerd/v2/client"
Expand Down Expand Up @@ -115,7 +116,7 @@ func Attach(ctx context.Context, client *containerd.Client, req string, options
if err != nil {
return err
}
opt = cio.WithStreams(in, con, nil)
opt = cio.WithStreams(in, os.Stdout, os.Stderr)
} else {
opt = cio.WithStreams(options.Stdin, options.Stdout, options.Stderr)
}
Expand Down

0 comments on commit 21445d5

Please sign in to comment.