mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
19e0928037
Signed-off-by: Ashley Cui <ashleycui16@gmail.com>
1 KiB
1 KiB
% podman-rmi(1)
NAME
podman-image-rm (podman-rmi) - Removes one or more images
SYNOPSIS
podman image rm image [...]
podman rmi image [...]
DESCRIPTION
Removes one or more locally stored images.
OPTIONS
-all, -a
Remove all images in the local storage.
--force, -f
This option will cause podman to remove all containers that are using the image before removing the image from the system.
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
Exit Status
0 if all specified images removed 1 if one of the specified images did not exist, and no other failures 125 if command fails for a reason other then an image did not exist
SEE ALSO
podman(1)
HISTORY
March 2017, Originally compiled by Dan Walsh dwalsh@redhat.com