Fix issue when attaching stdin alone
This commit is contained in:
parent
145c622aba
commit
25d1bc2c09
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue