mirror of https://github.com/docker/docs.git
Merge pull request #1053 from dynport/do-not-copy-hostname-from-image
do not merge hostname from image
This commit is contained in:
commit
16c8a10ef9
3
utils.go
3
utils.go
|
@ -53,9 +53,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