浏览代码

Fix issue when attaching stdin alone

Guillaume J. Charmes 12 年之前
父节点
当前提交
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)
 		}