diff --git a/cli/command/system/dial_stdio.go b/cli/command/system/dial_stdio.go index ceeac8223f..017ed40ce3 100644 --- a/cli/command/system/dial_stdio.go +++ b/cli/command/system/dial_stdio.go @@ -34,6 +34,7 @@ func runDialStdio(dockerCli command.Cli) error { if err != nil { return errors.Wrap(err, "failed to open the raw stream connection") } + defer conn.Close() var connHalfCloser halfCloser switch t := conn.(type) {