From f7241b24e6bc6ab1cc1f12c7f86f64c80a63a949 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Mon, 30 Mar 2020 21:37:32 +0300 Subject: 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 --- libpod/container_inspect.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'libpod') 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. -- cgit v1.2.3-54-g00ecf