Преглед на файлове

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