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

View file

@ -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)
}