summaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
authorSagi Shnaidman <sshnaidm@redhat.com>2020-03-30 21:37:32 +0300
committerSagi Shnaidman <sshnaidm@redhat.com>2020-03-30 21:38:19 +0300
commitf7241b24e6bc6ab1cc1f12c7f86f64c80a63a949 (patch)
tree3c80170c34677ae2247d9f3c86409c291532262e /libpod/container_inspect.go
parentedd623c4196f4b193387730f7989cfa108d634be (diff)
downloadpodman-f7241b24e6bc6ab1cc1f12c7f86f64c80a63a949.tar.gz
podman-f7241b24e6bc6ab1cc1f12c7f86f64c80a63a949.tar.bz2
podman-f7241b24e6bc6ab1cc1f12c7f86f64c80a63a949.zip
Revert "Default CPUShares in Inspect are 1024"
cpu-share is 0 in docker inspect, see https://github.com/moby/moby/issues/35452 This reverts commit eb229d526c04f17ca8b7e65abba745fd5b465a6c. Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index f81be8b22..729a00be8 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -445,9 +445,6 @@ 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.