mirror of
https://github.com/containers/podman.git
synced 2025-08-02 01:09:21 +08:00
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:
@ -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`
|
||||
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user