'volume rm' removes an arbitrary volume if the volume name is ambiguous #3635
Labels
kind/bug
Categorizes issue or PR as related to a bug.
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 bug
Description
If there are multiple volumes whose names start with the same character(s) (such as
a1
,a2
) thenpodman volume rm a
removes one of these volumes althougha
is ambiguous. This concerns named volumes as well as volumes identified by their hashes.Steps to reproduce the issue:
podman volume create a1
podman volume create a2
podman volume rm a
Describe the results you received:
Either volume
a1
ora2
is removed.Describe the results you expected:
Podman should not remove any volume. Instead it should complain about the ambiguous volume name.
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: