mirror of
https://github.com/containers/podman.git
synced 2025-12-19 07:09:39 +08:00
Quadlet: Add support for --sysctl flag
The Sysctl=name=value entry can be used to set --sysctl=name=value directly without the need to use PodmanArgs=--sysctl=name=value. Signed-off-by: Laurenz Kruty <git@laurenzkruty.de>
This commit is contained in:
8
test/e2e/quadlet/sysctl.container
Normal file
8
test/e2e/quadlet/sysctl.container
Normal file
@@ -0,0 +1,8 @@
|
||||
## assert-podman-args "--sysctl=net.ipv6.conf.all.disable_ipv6=1"
|
||||
## assert-podman-args "--sysctl=net.ipv6.conf.all.use_tempaddr=1"
|
||||
## assert-podman-args "--sysctl=net.ipv4.conf.lo.force_igmp_version=0"
|
||||
|
||||
[Container]
|
||||
Image=localhost/imagename
|
||||
Sysctl=net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.all.use_tempaddr=1
|
||||
Sysctl=net.ipv4.conf.lo.force_igmp_version=0
|
||||
@@ -562,6 +562,7 @@ var _ = Describe("quadlet system generator", func() {
|
||||
Entry("readwrite-notmpfs.container", "readwrite-notmpfs.container"),
|
||||
Entry("seccomp.container", "seccomp.container"),
|
||||
Entry("shortname.container", "shortname.container"),
|
||||
Entry("sysctl.container", "sysctl.container"),
|
||||
Entry("timezone.container", "timezone.container"),
|
||||
Entry("user.container", "user.container"),
|
||||
Entry("remap-manual.container", "remap-manual.container"),
|
||||
|
||||
Reference in New Issue
Block a user