Fix issue when attaching stdin alone

This commit is contained in:
Guillaume J. Charmes 2013-06-24 12:12:06 -07:00
parent 145c622aba
commit 25d1bc2c09
1 changed files with 2 additions and 1 deletions

View File

@ -1277,7 +1277,8 @@ func (cli *DockerCli) CmdRun(args ...string) error {
if !config.AttachStdout && !config.AttachStderr { if !config.AttachStdout && !config.AttachStderr {
fmt.Println(out.ID) fmt.Println(out.ID)
} else { }
if config.AttachStdin || config.AttachStdout || config.AttachStderr {
if config.Tty { if config.Tty {
cli.monitorTtySize(out.ID) cli.monitorTtySize(out.ID)
} }