summaryrefslogtreecommitdiff
path: root/docs/podman-rmi.1.md
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-02-24 07:36:27 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2019-02-25 12:49:27 -0500
commitfe4c0c37807f250c8f222bbe7634df13a6da8756 (patch)
tree21546b987d872879a372e458798804f2548c3b2c /docs/podman-rmi.1.md
parent73cfb9f127b0991c3faac9ff1fafed8d65355e4b (diff)
downloadpodman-fe4c0c37807f250c8f222bbe7634df13a6da8756.tar.gz
podman-fe4c0c37807f250c8f222bbe7634df13a6da8756.tar.bz2
podman-fe4c0c37807f250c8f222bbe7634df13a6da8756.zip
Change exit code to 1 on podman rmi nosuch image
Make it easy for scripts to determine if an image removal failure. If only errors were no such image exit with 1 versus 125. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'docs/podman-rmi.1.md')
-rw-r--r--docs/podman-rmi.1.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/podman-rmi.1.md b/docs/podman-rmi.1.md
index 9c080c9f1..8c22bba2c 100644
--- a/docs/podman-rmi.1.md
+++ b/docs/podman-rmi.1.md
@@ -1,9 +1,11 @@
-% podman-rmi(1)
+% podman-image-rm(1)
## NAME
-podman\-rmi - Removes one or more images
+podman\-image\-rm (podman\-rmi) - Removes one or more images
## SYNOPSIS
+**podman image rm** *image* ...
+
**podman rmi** *image* ...
## DESCRIPTION
@@ -38,6 +40,10 @@ 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)