mirror of https://github.com/docker/cli.git
Fix `docker start` blocking on signal handling
We refactorted `ForwardAllSignals` so it blocks but did not update the call in `start` to call it in a goroutine. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
70a00157f1
commit
e1a7517514
|
@ -75,7 +75,7 @@ func runStart(dockerCli command.Cli, opts *startOptions) error {
|
|||
// We always use c.ID instead of container to maintain consistency during `docker start`
|
||||
if !c.Config.Tty {
|
||||
sigc := notfiyAllSignals()
|
||||
ForwardAllSignals(ctx, dockerCli, c.ID, sigc)
|
||||
go ForwardAllSignals(ctx, dockerCli, c.ID, sigc)
|
||||
defer signal.StopCatch(sigc)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue