Podman prints wrong image name in inspection when image has two tags #8082
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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
When an image has two different tags that points to the same layer, Podman prints wrong image information in container inspection.
Steps to reproduce the issue:
Images have the same Id:
Describe the results you received:
Wrong Image name in inspection.
Describe the results you expected:
When running
podman run -dit --name bugtest docker.io/library/httpd:2
and thenpodman inspect bugtest
I'd like to get"Image": "docker.io/library/httpd:2"
and not"Image": "docker.io/library/httpd:latest"
, even if this is the same image actually.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Discovered from issue in Ansible Podman modules: containers/ansible-podman-collections#125
It breaks idempotency of
podman_container
module because we compareImage
in input parameters and info from container inspection, and it's different.The text was updated successfully, but these errors were encountered: