Containers

How to remove an image from the host?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

podman rmi IMAGE

It will fail if some containers are using it. You can then use --force flag for that but generally, it's better if you inspect the containers using the image before doing so.

To delete all images: podman rmi -a