For 'podman run --rm', do not remove named volumes (align with Docker behaviour) #3071
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
podman run --rm -v some-vol:/some/where image
removessome-vol
after stopping the container whereas the same command withdocker
retains the volume (as per the Docker documentation).It would be desirable to align Podman's behaviour with Docker's behaviour in this respect.
Steps to reproduce the issue:
Dockerfile
:podman build --tag vol-test .
podman run --rm -v var-vol:/var vol-test
Describe the results you received:
podman volume ls
shows thatvar-vol
no longer existsDescribe the results you expected:
podman volume ls
showslocal var-vol
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: