浏览代码

Fix logic flaw in builder.mergeConfig

Jonathan Rudenberg 12 年之前
父节点
当前提交
04748a7766
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      builder.go

+ 1 - 1
builder.go

@@ -45,7 +45,7 @@ func (builder *Builder) mergeConfig(userConf, imageConf *Config) {
 		userConf.PortSpecs = imageConf.PortSpecs
 	}
 	if !userConf.Tty {
-		userConf.Tty = userConf.Tty
+		userConf.Tty = imageConf.Tty
 	}
 	if !userConf.OpenStdin {
 		userConf.OpenStdin = imageConf.OpenStdin