1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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