mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-27 10:47:54 +00:00
If you are running a quadlet with anonymous volumes, then the volume will leak ever time you restart the service. This change will cause the volume to be removed. Fixes: https://github.com/containers/podman/issues/20070 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
20 lines
884 B
Text
20 lines
884 B
Text
## assert-podman-final-args localhost/imagename
|
|
## assert-podman-args "--name=systemd-%N"
|
|
## assert-podman-args "--cidfile=%t/%N.cid"
|
|
## assert-podman-args "--rm"
|
|
## assert-podman-args "--replace"
|
|
## assert-podman-args "-d"
|
|
## assert-podman-args "--cgroups=split"
|
|
## assert-podman-args "--sdnotify=conmon"
|
|
## assert-key-is "Unit" "RequiresMountsFor" "%t/containers"
|
|
## assert-key-is "Service" "KillMode" "mixed"
|
|
## assert-key-is "Service" "Delegate" "yes"
|
|
## assert-key-is "Service" "Type" "notify"
|
|
## assert-key-is "Service" "NotifyAccess" "all"
|
|
## assert-key-is "Service" "SyslogIdentifier" "%N"
|
|
## assert-key-is-regex "Service" "ExecStopPost" "-.*/podman rm -v -f -i --cidfile=%t/%N.cid"
|
|
## assert-key-is-regex "Service" "ExecStop" ".*/podman rm -v -f -i --cidfile=%t/%N.cid"
|
|
## assert-key-is "Service" "Environment" "PODMAN_SYSTEMD_UNIT=%n"
|
|
|
|
[Container]
|
|
Image=localhost/imagename
|