Просмотр исходного кода

Fix issue when attaching stdin alone

Guillaume J. Charmes 12 лет назад
Родитель
Сommit
25d1bc2c09
1 измененных файлов с 2 добавлено и 1 удалено
  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)
 		}