Merge pull request #2990 from cpuguy83/fix_start_blocking

Fix `docker start` blocking on signal handling
This commit is contained in:
Sebastiaan van Stijn 2021-05-07 08:32:48 +02:00 committed by GitHub
commit 19c5aab404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }