mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-23 07:15:54 +00:00
Fix issue when attaching stdin alone
This commit is contained in:
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user