Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman image prune is removing images used in a image manifest, leaving the manifest behind. #25525

Open
rhatdan opened this issue Mar 10, 2025 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@rhatdan
Copy link
Member

rhatdan commented Mar 10, 2025

Issue Description

Create an image with podman build
$ cat Containerfile
from alpine
run echo hi

$ podman build /tmp/
STEP 1/2: FROM alpine
STEP 2/2: run echo hi
--> Using cache 8907335901b513e5d774cc22eaf53c08493212070bd81cb1347228f589c4186f
--> 8907335901b5
8907335901b513e5d774cc22eaf53c08493212070bd81cb1347228f589c4186f

$ podman manifest create test 8907335901b513e5d774cc22eaf53c08493212070bd81cb1347228f589c4186f
$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/test latest 3b57a39f5d5e 33 seconds ago 604 B
8907335901b5 About a minute ago 8.13 MB
$ podman image prune
WARNING! This command removes all dangling images.
Are you sure you want to continue? [y/N] y
8907335901b513e5d774cc22eaf53c08493212070bd81cb1347228f589c4186f

This image is not dangling, it is being used by the manifest.

Steps to reproduce the issue

Steps to reproduce the issue
1.
2.
3.

Describe the results you received

Describe the results you received

Describe the results you expected

Describe the results you expected

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@rhatdan rhatdan added the kind/bug Categorizes issue or PR as related to a bug. label Mar 10, 2025
@rhatdan
Copy link
Member Author

rhatdan commented Mar 10, 2025

This stems from podman images --filter dangling=true listing the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant