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>
This commit is contained in:
Daniel J Walsh
2019-02-24 07:36:27 -05:00
parent 73cfb9f127
commit fe4c0c3780
5 changed files with 44 additions and 44 deletions

View File

@ -30,7 +30,7 @@ The latest option is not supported on the remote client.
`podman container cleanup 860a4b23`
`podman container-cleanup -a`
`podman container cleanup -a`
`podman container cleanup --latest`

View File

@ -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)