summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-02-24 19:04:39 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2019-02-25 10:31:04 -0500
commite41279b902a334e53c56330a28f42d7a6027df74 (patch)
tree1c74f918827bec245e8c136f832aab8a34186cda /docs
parent9e70411ffc24732049e133c83873f7834edf7c0a (diff)
downloadpodman-e41279b902a334e53c56330a28f42d7a6027df74.tar.gz
podman-e41279b902a334e53c56330a28f42d7a6027df74.tar.bz2
podman-e41279b902a334e53c56330a28f42d7a6027df74.zip
Change exit code to 1 on podman rm nosuch container
Make it easy for scripts to determine if a container removal fails versus the container did not exist. If only errors were no such container exit with 1 versus 125. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/podman-rm.1.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/podman-rm.1.md b/docs/podman-rm.1.md
index 10ebe97f9..dc1729188 100644
--- a/docs/podman-rm.1.md
+++ b/docs/podman-rm.1.md
@@ -1,9 +1,11 @@
-% podman-rm(1)
+% podman-container-rm(1)
## NAME
-podman\-rm - Remove one or more containers
+podman\-container\-rm (podman\-rm) - Remove one or more containers
## SYNOPSIS
+**podman container rm** [*options*] *container*
+
**podman rm** [*options*] *container*
## DESCRIPTION
@@ -57,8 +59,13 @@ Forcibly remove the latest container created.
podman rm -f --latest
```
+## Exit Status
+**_0_** if all specified containers removed
+**_1_** if one of the specified containers did not exist, and no other failures
+**_125_** if command fails for a reason other then an container did not exist
+
## SEE ALSO
-podman(1), podman-rmi(1)
+podman(1), podman-image-rm(1)
## HISTORY
August 2017, Originally compiled by Ryan Cole <rycole@redhat.com>