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) then podman volume rm a removes one of these volumes although a 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 or a2 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:
Version: 1.4.3
RemoteAPI Version: 1
Go Version: go1.10.4
OS/Arch: linux/amd64
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.):