mirror of https://github.com/docker/docs.git
do not merge hostname from image
This commit is contained in:
parent
a11fc9f067
commit
9bfec5a538
3
utils.go
3
utils.go
|
@ -49,9 +49,6 @@ func CompareConfig(a, b *Config) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func MergeConfig(userConf, imageConf *Config) {
|
func MergeConfig(userConf, imageConf *Config) {
|
||||||
if userConf.Hostname == "" {
|
|
||||||
userConf.Hostname = imageConf.Hostname
|
|
||||||
}
|
|
||||||
if userConf.User == "" {
|
if userConf.User == "" {
|
||||||
userConf.User = imageConf.User
|
userConf.User = imageConf.User
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue