-
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
podman run --rm
does not remove automatically created volumes
#3967
Comments
We changed this in the other direction in #3071 - need to figure out what's going on here. |
Well, that simplifies matters. We don't have support for anonymous named volumes yet, I think. |
Now that I think about it, docker docs might not even have any power over this particular issue, since docs only deal with specified volumes, but my problem is with unspecified volumes (volumes created automatically by podman when |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
This is actually fixed now - we landed support for anonymous volumes recently. |
Do note that this now results in volumes created with older versions of podman (those that do not show up with a |
Will be fixed in 1.8.0. Unfortunately, that fix also has to go a little far to the other side (even unnamed volumes from old Podman versions will not be removed) - but this is safer than removing volumes that we shouldn't. |
After having kind of lost a Nextcloud installation today, I fully agree with you on that 😅 |
/kind feature
Description
podman run --rm
does not remove automatically created volumes. This is different fromdocker run --rm
as described in https://docs.docker.com/engine/reference/run/#clean-up---rm .Steps to reproduce the issue:
podman run --rm --name pg1 -d postgres
podman stop pg1
podman volume ls
Describe the results you received:
Automatically created volume. Every reproduction step leaves one more volume. Containers with more volumes leave behind more volumes.
Describe the results you expected:
No new volumes left behind after container started with
--rm
stops.Additional information you deem important (e.g. issue happens only occasionally):
Happens always.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: