From 25d1bc2c09e3f6e7973d6b159e49ae7f8bd7670d Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Mon, 24 Jun 2013 12:12:06 -0700 Subject: [PATCH] Fix issue when attaching stdin alone --- commands.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 47bc492909..ea45c986f0 100644 --- a/commands.go +++ b/commands.go @@ -1277,7 +1277,8 @@ func (cli *DockerCli) CmdRun(args ...string) error { if !config.AttachStdout && !config.AttachStderr { fmt.Println(out.ID) - } else { + } + if config.AttachStdin || config.AttachStdout || config.AttachStderr { if config.Tty { cli.monitorTtySize(out.ID) }