diff --git a/cli/command/container/start.go b/cli/command/container/start.go index e388302841..2cca4e011e 100644 --- a/cli/command/container/start.go +++ b/cli/command/container/start.go @@ -154,7 +154,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 }