mirror of
https://github.com/containers/podman.git
synced 2026-10-26 19:59:31 -04:00
1 parent
23ead49dee
commit
d2a4ec867d
2 files changed
+11
-2
No files matched your search
@@ -1545,14 +1545,18 @@ VOLUME %s`, ALPINE, volPath, volPath)
|
||||
container.WaitWithDefaultTimeout()
|
||||
Expect(container).Should(Exit(0))
|
||||
checkLines(container.OutputToStringArray())
|
||||
Expect(container.ErrorToString()).To(ContainSubstring("Running scope as unit: "))
|
||||
Expect(container.ErrorToString()).To(Or(
|
||||
ContainSubstring("Running scope as unit: "), // systemd < 255
|
||||
ContainSubstring("Running as unit: "))) // systemd >= 255
|
||||
|
||||
// check that --cgroups=split is honored also when a container runs in a pod
|
||||
container = podmanTest.PodmanSystemdScope([]string{"run", "--rm", "--pod", "new:split-test-pod", "--cgroups=split", ALPINE, "cat", "/proc/self/cgroup"})
|
||||
container.WaitWithDefaultTimeout()
|
||||
Expect(container).Should(Exit(0))
|
||||
checkLines(container.OutputToStringArray())
|
||||
Expect(container.ErrorToString()).To(ContainSubstring("Running scope as unit: "))
|
||||
Expect(container.ErrorToString()).To(Or(
|
||||
ContainSubstring("Running scope as unit: "), // systemd < 255
|
||||
ContainSubstring("Running as unit: "))) // systemd >= 255
|
||||
})
|
||||
|
||||
It("podman run with cgroups=disabled runs without cgroups", func() {
|
||||
|
||||
@@ -178,8 +178,13 @@ host.slirp4netns.executable | $expr_path
|
||||
@test "CONTAINERS_CONF_OVERRIDE" {
|
||||
skip_if_remote "remote does not support CONTAINERS_CONF*"
|
||||
|
||||
# Need to include runtime because it's runc in debian CI,
|
||||
# and crun 1.11.1 barfs with "read from sync socket"
|
||||
containersConf=$PODMAN_TMPDIR/containers.conf
|
||||
cat >$containersConf <<EOF
|
||||
[engine]
|
||||
runtime="$(podman_runtime)"
|
||||
|
||||
[containers]
|
||||
env = [ "CONF1=conf1" ]
|
||||
|
||||
|
||||
Reference in new issue
Block a user