diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-09-14 12:16:13 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-09-14 12:35:22 +0200 |
commit | 44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1 (patch) | |
tree | 97ba60706417b4fcf0e96578ca2716cfce0c5042 /libpod/container_internal_linux.go | |
parent | b603c7a4b91d30b33ce987740156f46804f24074 (diff) | |
download | podman-44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1.tar.gz podman-44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1.tar.bz2 podman-44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1.zip |
libpod: honor --cgroups=split also with pods
Honor --cgroups=split also when the container is running in a pod.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index eabe8efd2..34f84203b 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -2495,9 +2495,6 @@ func (c *Container) getOCICgroupPath() (string, error) { } return c.config.CgroupParent, nil case c.config.CgroupsMode == cgroupSplit: - if c.config.CgroupParent != "" { - return c.config.CgroupParent, nil - } selfCgroup, err := utils.GetOwnCgroup() if err != nil { return "", err |