mirror of https://github.com/docker/docs.git
Fix issue when attaching stdin alone
This commit is contained in:
parent
145c622aba
commit
25d1bc2c09
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue