Przeglądaj źródła

Fix issue when attaching stdin alone

Guillaume J. Charmes 12 lat temu
rodzic
commit
25d1bc2c09
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      commands.go

+ 2 - 1
commands.go

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