mirror of https://github.com/docker/cli.git
Merge pull request #2990 from cpuguy83/fix_start_blocking
Fix `docker start` blocking on signal handling
This commit is contained in:
commit
19c5aab404
|
@ -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`
|
// We always use c.ID instead of container to maintain consistency during `docker start`
|
||||||
if !c.Config.Tty {
|
if !c.Config.Tty {
|
||||||
sigc := notfiyAllSignals()
|
sigc := notfiyAllSignals()
|
||||||
ForwardAllSignals(ctx, dockerCli, c.ID, sigc)
|
go ForwardAllSignals(ctx, dockerCli, c.ID, sigc)
|
||||||
defer signal.StopCatch(sigc)
|
defer signal.StopCatch(sigc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue