Skip to content

Commit

Permalink
Attach: do not disable sig-proxy when using a TTY
Browse files Browse the repository at this point in the history
Similar to docker#1841

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jul 9, 2021
1 parent 5f07d7d commit 930e13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/container/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func runAttach(dockerCli command.Cli, opts *attachOptions) error {
in = dockerCli.In()
}

if opts.proxy && !c.Config.Tty {
if opts.proxy {
sigc := notfiyAllSignals()
go ForwardAllSignals(ctx, dockerCli, opts.container, sigc)
defer signal.StopCatch(sigc)
Expand Down

0 comments on commit 930e13b

Please sign in to comment.