-
Notifications
You must be signed in to change notification settings - Fork 489
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
Remove named volumes during "down -v" #214
Conversation
@muayyad-alsadi any chance you could have a look on this one? Thanks in advance! |
I'm very sorry for taking so long. I've moved to a new house and I feel I must review this one because I don't want to remove volumes by mistake. BTW we can remove volumes using labels. |
No worries! I hope the new house is wonderful. I've tried to use a single podman command to remove all the volumes based on labels, but was not able to do so. I've opted to listing all the volumes and inspecting the labels on each one. I'm happy to hear an alternative approach. I also tried using |
in deed, it's a nice villa.
we set a label
I had the following todo comment in the source code
|
Yes, I saw that. That syntax doesn't work for me with podman 2.1.1. |
Any word on this? I notice the discussion around it stopped in 2020. |
@lcarva can we fix the merge conflicts? |
Fixes containers#105 Signed-off-by: Luiz Carvalho <[email protected]>
76be216
to
e881169
Compare
Done! |
I'll invite you to jump to 1.x branch and start playing with it. I'll port this fix to it. 0.1 for legacy versions of podman, 1.x for modern versions (CNI network, no need for mapping and workarounds). by the end of this weekend I hope I can update the documentation. |
@lcarva why you used
instead of
what are the podman versions that don't support the latter? |
Podman 2.1.1 is what I had used, but that was over a year ago. The I just tried this again with Podman 3.4.4 and it appears to have been fixed. containers/podman#8345 appears to be the fix. +1 to switching to using that now, but it may not work for older versions of podman. |
PR submitted: #402 |
podman-compose version 1.x is for podman>=3.1.0 |
Fixes #105
Signed-off-by: Luiz Carvalho [email protected]