mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
Default CPUShares in Inspect are 1024
This is purely a display change - we weren't initializing the default value to display for the CPUShares field, which defaults to 1024. Fixes #4822 Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
@ -1014,6 +1014,9 @@ func (c *Container) generateInspectContainerHostConfig(ctrSpec *spec.Spec, named
|
||||
hostConfig.ShmSize = c.config.ShmSize
|
||||
hostConfig.Runtime = "oci"
|
||||
|
||||
// Default CPUShares is 1024, but we may overwrite below.
|
||||
hostConfig.CpuShares = 1024
|
||||
|
||||
// This is very expensive to initialize.
|
||||
// So we don't want to initialize it unless we absolutely have to - IE,
|
||||
// there are things that require a major:minor to path translation.
|
||||
|
Reference in New Issue
Block a user