Hi GHui,

Thanks for reaching out.


On Tue, Aug 9, 2022 at 12:28 PM GHui Wu via Podman <podman@lists.podman.io> wrote:
When I remove the image, it output the error "image is in use by a container'. But there is no container.

$ podman images
REPOSITORY                         TAG         IMAGE ID      CREATED        SIZE
docker.io/library/centos           7.9.2009    eeb6ee3f44bd  10 months ago  212 MB
docker.io/library/centos           8.4.2105    5d0da3dc9764  10 months ago  239 MB
$ podman rmi eeb6ee3f44bd
Error: Image used by ebc5c35088b04b38a4f6c6575951f2a0effc7f17a6aabc1a2d7d29d24f6e5094: image is in use by a container

We recently improved the error message to be more helpful (https://github.com/containers/podman/pull/15197).  Try running `podman ps --external` which will list non-podman containers.  Most likely, a `podman build` got killed on the machine and a so-called "build container" using this image is still running.

Kind regards,
 Valentin
 
$ podman ps -a
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io