mirror of
https://github.com/containers/podman.git
synced 2025-12-05 12:52:12 +08:00
The ReadOnly and the RunInit keys affect options that have a variable default (configurable in containers.conf). This means we need to handle them a bit differently in quadlet to allow overriding the default. For example, we can't assume ReadOnly=false doesn't need to add any argument because no argument may mean readonly=true if the default is changed. We now don't add any argument (leaving the default) if the key is not specified, or we always add an argument (--foo or --foo=false) if the key is specified (overriding whatever the default is). Signed-off-by: Alexander Larsson <alexl@redhat.com>
9 lines
208 B
Plaintext
9 lines
208 B
Plaintext
## assert-podman-args "--read-only=false"
|
|
## !assert-podman-args "--read-only"
|
|
## !assert-podman-args "--tmpfs" "/tmp:rw,size=512M,mode=1777"
|
|
|
|
[Container]
|
|
Image=localhost/imagename
|
|
VolatileTmp=no
|
|
ReadOnly=no
|