-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quadlet does not remove anonymous volumes on service stop #20070
Comments
Looks like the cleanup process did no succeed, perhaps because the sleep process did not receive signals? Or systemd shot the conmon before it executed cleanup. |
Not sure what this means: |
You need systemd runs to You can repro it on the CLI too:
|
Yes now I understand, I will have a pull request up tomorrow to fix this. |
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: containers#20070 Signed-off-by: Daniel J Walsh <[email protected]>
This is basically a race condition between the --rm on the run command and the podman rm command, to see who wipes out the container first. If the |
Issue Description
Services generated by Quadlet does not remove their anonymous volumes after stopping.
This is due to the
ExecStop
command not having the-v
flag set.Steps to reproduce the issue
sleep.container
to quadletsleep.service
podman volume list
and confirm that an anonymous volume was createdsleep.service
podman volume list
Describe the results you received
The anonymous volume should be gone
Describe the results you expected
The anonymous volume is still there.
Manual pruning with
podman volume prune
is possible.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: