mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
rootless: don't use kill --all
The OCI runtime might use the cgroups to see what PIDs are inside the container, but that doesn't work with rootless containers. Closes: https://github.com/containers/libpod/issues/1337 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1331 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
c5753f57c1
commit
8b5823a62d
@ -117,6 +117,10 @@ var _ = Describe("Podman rootless", func() {
|
||||
Expect(cmd.ExitCode()).To(Equal(0))
|
||||
Expect(cmd.LineInOutputContains("hello")).To(BeTrue())
|
||||
|
||||
cmd = podmanTest.PodmanAsUser([]string{"rm", "-l", "-f"}, 1000, 1000, env)
|
||||
cmd.WaitWithDefaultTimeout()
|
||||
Expect(cmd.ExitCode()).To(Equal(0))
|
||||
|
||||
allArgs = append([]string{"run", "-d"}, args...)
|
||||
allArgs = append(allArgs, "--security-opt", "seccomp=unconfined", "--rootfs", mountPath, "unshare", "-r", "unshare", "-r", "top")
|
||||
cmd = podmanTest.PodmanAsUser(allArgs, 1000, 1000, env)
|
||||
|
||||
Reference in New Issue
Block a user