podman-rmi - Man Page
Removes one or more locally stored images
- Remove one or more images given their names:
podman rmi image:tag image2:tag ...
- Force remove an image:
podman rmi --force image
- Remove an image without deleting untagged parents:
podman rmi --no-prune image
- Display help:
podman rmi [options] image [...]
podman image rm [options] image [...]
Removes one or more locally stored images. Passing an argument image deletes it, along with any of its dangling parent images. A dangling image is an image without a tag and without being referenced by another image.
Note: To delete an image from a remote registry, use the skopeo delete command. Some registries do not allow users to delete an image via a CLI remotely.
Remove all images in the local storage.
This option will cause podman to remove all containers that are using the image before removing the image from the system.
If a specified image does not exist in the local storage, ignore it and do not throw an error.
This options will not remove dangling parents of specified image
Remove an image by its short ID
$ podman rmi c0ed59d05ff7
Remove an image and its associated containers.
$ podman rmi --force imageID
Remove multiple images by their shortened IDs.
$ podman rmi c4dfb1609ee2 93fd78260bd1 c0ed59d05ff7
Remove all images and containers.
$ podman rmi -a -f
Remove an absent image with and without the
$ podman rmi --ignore nothing $ podman rmi nothing Error: nothing: image not known
0 All specified images removed
1 One of the specified images did not exist, and no other failures
2 One of the specified images has child images or is being used by a container
125 The command fails for any other reason
March 2017, Originally compiled by Dan Walsh email@example.com ⟨mailto:firstname.lastname@example.org⟩
podman(1), podman-image(1), podman-remote(1), toolbox-rmi(1).
The man page podman-image-rm(1) is an alias of podman-rmi(1).