Inappropriate error triggered when container and pod ID have a partial match #3487
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.
/kind bug
Description
When a container ID and a pod ID share a a common prefix, trying to address to the container or to the pod with that prefix results in:
I understand that IDs are unique for {containers ∪ pods}, but the error message is not making it obvious.
Even better if it is possible to distinguish between pods and containers and avoid triggering this error.
Steps to reproduce the issue:
podman rm <prefix>
Describe the results you received:
Error: more than one result for container ID <prefix>: container already exists
Describe the results you expected:
The container should be removed without any errors.
Output of
podman version
:git 3b9ce8a
The text was updated successfully, but these errors were encountered: