mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
Use default_ulimits field in containers.conf
The default_ulimits field is currently ignored in podman run commands. This PR fixes this. Fixes: https://github.com/containers/podman/issues/17396 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -55,6 +55,19 @@ var _ = Describe("Verify podman containers.conf usage", func() {
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(session.OutputToString()).To(ContainSubstring("2048"))
|
||||
|
||||
// Reset CONTAINERS_CONF to "/dev/null"
|
||||
// Local should go back to defaults but remote should be set on server side
|
||||
os.Setenv("CONTAINERS_CONF", "/dev/null")
|
||||
session = podmanTest.Podman([]string{"run", "--rm", fedoraMinimal, "ulimit", "-n"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
if IsRemote() {
|
||||
Expect(session.OutputToString()).To(ContainSubstring("500"))
|
||||
} else {
|
||||
Expect(session.OutputToString()).To(Not(Equal("500")))
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
It("having additional env", func() {
|
||||
|
||||
Reference in New Issue
Block a user