Skip to content

podman rmi error 'image not known' even if the image is present on host #25997

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

Open
anandmokashi opened this issue Apr 28, 2025 · 3 comments
Open
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-info Need info from reporter triaged Issue has been triaged

Comments

@anandmokashi
Copy link

Issue Description

The image is being pulled, having 'pull failure' due to timeout. This may be due to multiple reasons primarily image being large and slow network.
The image is actually pulled and present on the host. However, when immediately tried to remove using 'podman rmi' command, below error is sent in the response:
"image not known".

When I checked the documentation, I found that the image written to the disk in two steps with hard lock acquired, where processes like rmi needs to gain the lock to remove the image otherwise it throws 'image not known' error.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Pull large sized image
  2. immediately try podman rmi
  3. check the response
    This has to be done via some script to make it happen as quick as possible to reproduce the issue.

Describe the results you received

The result of 'podman rmi' was 'image not known' and image was actually present on the host.

Describe the results you expected

The expected result was removal of image successfully.

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

Yes

Privileged Or Rootless

Privileged

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

@anandmokashi anandmokashi added the kind/bug Categorizes issue or PR as related to a bug. label Apr 28, 2025
@Luap99 Luap99 added the needs-info Need info from reporter label Apr 28, 2025
Copy link

A reviewer has determined we need more information to understand the reported issue. A comment on what is missing should be provided. Be certain you:

  • provide an exact reproducer where possible
  • verify you have provided all relevant information - minimum is podman info
  • answer any follow up questions

If no response to the needs-info is provided in 30 days, this issue may be closed by our stale bot.

For more information on reporting issues on this repository, consult our issue guide.

@mheon mheon added the triaged Issue has been triaged label Apr 29, 2025
@mheon
Copy link
Member

mheon commented Apr 29, 2025

@Luap99 Did you mean to ask a question here when you tagged needinfo?

@baude
Copy link
Member

baude commented Apr 29, 2025

please provide podman info information as the template asked for ... and if possible, an exact reproducer including the script or image name.

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. needs-info Need info from reporter triaged Issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants