Files
podman/docs/source/markdown/podman-rmi.1.md
Ed Santiago 281def2647 man pages: fix inconsistencies
I wrote a script to cross-reference podman --help against
man pages. It found a bunch of inconsistencies fix them:

 * options missing from man pages
 * options misspelled or misformatted in man pages (usually
   misplaced asterisks or missing dashes, but see --dns-opt)
 * one spurious comma in the actual source file --help

This is a fix in which I iterate over 'podman CMD --help'
and check for presence in man pages. The other way around
(look for flags in man pages, check podman CMD --help)
is probably impossible: there are too many special cases

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-10 15:03:59 -06:00

57 lines
1.1 KiB
Markdown

% podman-rmi(1)
## NAME
podman\-rmi - Removes one or more locally stored images
## SYNOPSIS
**podman rmi** *image* [...]
**podman image rm** *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** 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 a reason other than an image did not exist or is in use
## SEE ALSO
podman(1)
## HISTORY
March 2017, Originally compiled by Dan Walsh <dwalsh@redhat.com>