96 lines
2.1 KiB
Groff
96 lines
2.1 KiB
Groff
.nh
|
|
.TH podman-rmi 1
|
|
.SH NAME
|
|
podman-rmi \- Remove one or more locally stored images
|
|
|
|
.SH SYNOPSIS
|
|
\fBpodman rmi\fP [\fIoptions\fP] \fIimage\fP [...]
|
|
|
|
.PP
|
|
\fBpodman image rm\fP [\fIoptions\fP] \fIimage\fP [...]
|
|
|
|
.SH DESCRIPTION
|
|
Removes one or more locally stored images.
|
|
Passing an argument \fIimage\fP 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.
|
|
|
|
.PP
|
|
Note: To delete an image from a remote registry, use the \fBskopeo delete\fP command. Some registries do not allow users to delete an image via a CLI remotely.
|
|
|
|
.SH OPTIONS
|
|
.SS \fB--all\fP, \fB-a\fP
|
|
Remove all images in the local storage.
|
|
|
|
.SS \fB--force\fP, \fB-f\fP
|
|
This option causes Podman to remove all containers that are using the image before removing the image from the system.
|
|
|
|
.SS \fB--ignore\fP, \fB-i\fP
|
|
If a specified image does not exist in the local storage, ignore it and do not throw an error.
|
|
|
|
.SS \fB--no-prune\fP
|
|
This option does not remove dangling parents of the specified image.
|
|
|
|
.SH EXAMPLES
|
|
Remove an image by its short ID
|
|
|
|
.EX
|
|
$ podman rmi c0ed59d05ff7
|
|
.EE
|
|
|
|
.PP
|
|
Remove an image and its associated containers.
|
|
|
|
.EX
|
|
$ podman rmi --force imageID
|
|
.EE
|
|
|
|
.PP
|
|
Remove multiple images by their shortened IDs.
|
|
|
|
.EX
|
|
$ podman rmi c4dfb1609ee2 93fd78260bd1 c0ed59d05ff7
|
|
.EE
|
|
|
|
.PP
|
|
Remove all images and containers.
|
|
|
|
.EX
|
|
$ podman rmi -a -f
|
|
.EE
|
|
|
|
.PP
|
|
Remove an absent image with and without the \fB--ignore\fR flag.
|
|
|
|
.EX
|
|
$ podman rmi --ignore nothing
|
|
$ podman rmi nothing
|
|
Error: nothing: image not known
|
|
|
|
.EE
|
|
|
|
.PP
|
|
Remove an image but keep any parents of it.
|
|
|
|
.EX
|
|
podman rmi --no-prune d29200bf974d
|
|
Deleted: d29200bf974dbc48dc66c23c4031548531b6b5943e5f25ee7bda232e3b6b27f4
|
|
.EE
|
|
|
|
.SH Exit Status
|
|
\fB0\fP All specified images removed
|
|
|
|
.PP
|
|
\fB1\fP One of the specified images did not exist, and no other failures
|
|
|
|
.PP
|
|
\fB2\fP One of the specified images has child images or is being used by a container
|
|
|
|
.PP
|
|
\fB125\fP The command fails for any other reason
|
|
|
|
.SH SEE ALSO
|
|
\fBpodman(1)\fP, \fBskopeo-delete(1)\fP
|
|
|
|
.SH HISTORY
|
|
March 2017, Originally compiled by Dan Walsh dwalsh@redhat.com
|
|
\[la]mailto:dwalsh@redhat.com\[ra]
|