mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
propagate CpuShares in mergeConfig
Upstream-commit: eef8b0d406412ffe6622ed1f2c858540eb7f75f1 Component: engine
This commit is contained in:
@@ -38,6 +38,9 @@ func (builder *Builder) mergeConfig(userConf, imageConf *Config) {
|
||||
if userConf.MemorySwap == 0 {
|
||||
userConf.MemorySwap = imageConf.MemorySwap
|
||||
}
|
||||
if userConf.CpuShares == 0 {
|
||||
userConf.CpuShares = imageConf.CpuShares
|
||||
}
|
||||
if userConf.PortSpecs == nil || len(userConf.PortSpecs) == 0 {
|
||||
userConf.PortSpecs = imageConf.PortSpecs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user