mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
libpod: pods do not use cgroups if --cgroups=disabled
do not attempt to use cgroups with pods if the cgroups are disabled. A similar check is already in place for containers. Closes: https://github.com/containers/podman/issues/13411 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -562,6 +562,11 @@ var _ = Describe("Verify podman containers.conf usage", func() {
|
||||
inspect = podmanTest.Podman([]string{"inspect", "--format", "{{ .HostConfig.Cgroups }}", result.OutputToString()})
|
||||
inspect.WaitWithDefaultTimeout()
|
||||
Expect(inspect.OutputToString()).To(Equal("disabled"))
|
||||
|
||||
// Check we can also create a pod when cgroups=disabled
|
||||
result = podmanTest.Podman([]string{"pod", "create"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result).Should(Exit(0))
|
||||
})
|
||||
|
||||
It("podman containers.conf runtime", func() {
|
||||
|
||||
Reference in New Issue
Block a user