summaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-rmi.1.md
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2019-10-29 17:27:12 -0700
committerbaude <bbaude@redhat.com>2019-10-31 12:31:39 -0500
commit486fcd4e1e6f00424f1016d8e331582523bd2c68 (patch)
treea1aff46e1f585a9e7a99e7a61a7cca63a4a1b507 /docs/source/markdown/podman-rmi.1.md
parent52b92023edeba3a5e2c466d92d742e54b14a85cb (diff)
downloadpodman-486fcd4e1e6f00424f1016d8e331582523bd2c68.tar.gz
podman-486fcd4e1e6f00424f1016d8e331582523bd2c68.tar.bz2
podman-486fcd4e1e6f00424f1016d8e331582523bd2c68.zip
Update document formatting and packaging code
* Refactored code and Makefile to support new docs layout * Removed some old code packaging code * Add Readme.md to document what we're doing Signed-off-by: Jhon Honce <jhonce@redhat.com> Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'docs/source/markdown/podman-rmi.1.md')
-rw-r--r--docs/source/markdown/podman-rmi.1.md53
1 files changed, 53 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-rmi.1.md b/docs/source/markdown/podman-rmi.1.md
new file mode 100644
index 000000000..d911ee6cb
--- /dev/null
+++ b/docs/source/markdown/podman-rmi.1.md
@@ -0,0 +1,53 @@
+% 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_** if all specified images removed
+**_1_** if one of the specified images did not exist, and no other failures
+**_2_** if one of the specified images has child images or is being used by a container
+**_125_** if 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>