mirror of
https://github.com/containers/podman.git
synced 2025-12-19 07:09:39 +08:00
Merge pull request #6842 from rhatdan/pids-limit
Pids-limit should only be set if the user set it
This commit is contained in:
@@ -1072,4 +1072,13 @@ USER mail`
|
||||
Expect(session.OutputToString()).To(ContainSubstring(h))
|
||||
|
||||
})
|
||||
|
||||
It("podman run verify pids-limit", func() {
|
||||
SkipIfCgroupV1()
|
||||
limit := "4321"
|
||||
session := podmanTest.Podman([]string{"run", "--pids-limit", limit, "--rm", ALPINE, "cat", "/sys/fs/cgroup/pids.max"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
Expect(session.OutputToString()).To(ContainSubstring(limit))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user