Add --all functionality to rmi

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #384
Approved by: rhatdan
This commit is contained in:
TomSweeneyRedHat
2018-01-05 19:20:26 -05:00
committed by Atomic Bot
parent ae7d2f3547
commit fd995e6166
5 changed files with 120 additions and 11 deletions

View File

@@ -11,14 +11,22 @@ Removes one or more locally stored images.
## OPTIONS
**--all, -a**
All local images will be removed from the system that do not have containers using the image as a reference image.
**--force, -f**
Executing this command will stop all containers that are using the image and remove them from the system
This option will cause Buildah to remove all containers that are using the image before removing the image from the system.
## EXAMPLE
buildah rmi imageID
buildah rmi --all
buildah rmi --all --force
buildah rmi --force imageID
buildah rmi imageID1 imageID2 imageID3