diff --git a/cli/command/container/start.go b/cli/command/container/start.go index 10661768ac..2693987fc5 100644 --- a/cli/command/container/start.go +++ b/cli/command/container/start.go @@ -150,7 +150,7 @@ func runStart(dockerCli command.Cli, opts *startOptions) error { } } if attachErr := <-cErr; attachErr != nil { - if _, ok := err.(term.EscapeError); ok { + if _, ok := attachErr.(term.EscapeError); ok { // The user entered the detach escape sequence. return nil }