tech:pb_podman_-_image_is_in_use_by_a_container

Pb podman - image is in use by a container

$ podman images |grep '<none>'
<none>                                                                           <none>      38808a9199c1  2 months ago   294 MB
<none>                                                                           <none>      e5bb0bda807d  3 months ago   371 MB

$ podman ps -a
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES

$ podman rmi 38808a9199c1
Error: image used by af0c32ff54054be71254ea980c9181dba8068ecac9e9e69b7190479602eb9721: image is in use by a container: consider listing external containers $
nd force-removing image

$ podman ps -a --storage |grep af0c3
af0c32ff5405  docker.io/library/259c91e8558f1ecb99392f6bc7ef9ea5320179b1e35b1c7c3101818f2547a453-tmp:latest  buildah     2 months ago  Storage
  38808a9199c1-working-container

Solution

buildah rm --all

ou encore

podman rmi 38808a9199c1 -f

Profitons-en pour faire un peu de nettoyage

podman image prune

Ou encore

podman system prune 
tech/pb_podman_-_image_is_in_use_by_a_container.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki