LinuxCommandLibrary

podman-rmi

Remove container images from local storage

TLDR

Remove an image

$ podman rmi [image]
copy
Remove multiple images
$ podman rmi [image1] [image2]
copy
Force remove
$ podman rmi -f [image]
copy
Remove all unused images
$ podman rmi -a
copy

SYNOPSIS

podman rmi [options] image [image...]

DESCRIPTION

podman rmi removes one or more container images from local storage, freeing disk space. By default, images that are currently in use by a container cannot be removed.
Use -f (force) to remove images even if containers reference them. The -a flag removes all images. The --ignore flag silently skips images that don't exist instead of returning an error.

PARAMETERS

IMAGE

Image to remove.
-f, --force
Force removal.
-a, --all
Remove all images.
--ignore
Ignore missing images.

CAVEATS

Cannot remove images in use. Use force carefully.

HISTORY

podman rmi provides image removal functionality.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community