Add 'kpod images' and 'kpod rmi' commands

'kpod images' lists all images on a system.  'kpod rmi' removes
one or more images from a system.  The images will not be removed
if they are associated with a running container, unless the -f
option is used

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-06-16 13:24:00 -04:00
parent 7fb772b7d1
commit a040f20a76
11 changed files with 1708 additions and 8 deletions

48
docs/kpod-images.1.md Normal file
View file

@ -0,0 +1,48 @@
## kpod-images "1" "March 2017" "kpod"
## NAME
kpod images - List images in local storage.
## SYNOPSIS
**kpod** **images** [*options* [...]]
## DESCRIPTION
Displays locally stored images, their names, and their IDs.
## OPTIONS
**--digests**
Show image digests
**--filter, -f=[]**
Filter output based on conditions provided (default [])
**--format="TEMPLATE"**
Pretty-print images using a Go template. Will override --quiet
**--noheading, -n**
Omit the table headings from the listing of images.
**--no-trunc, --notruncate**
Do not truncate output.
**--quiet, -q**
Lists only the image IDs.
## EXAMPLE
kpod images
kpod images --quiet
kpod images -q --noheading --notruncate
## SEE ALSO
kpod(1)

27
docs/kpod-rmi.1.md Normal file
View file

@ -0,0 +1,27 @@
## kpod-rmi "1" "March 2017" "kpod"
## NAME
kpod rmi - Removes one or more images.
## SYNOPSIS
**kpod** **rmi** **imageID [...]**
## DESCRIPTION
Removes one or more locally stored images.
## OPTIONS
**--force, -f**
Executing this command will stop all containers that are using the image and remove them from the system
## EXAMPLE
kpod rmi imageID
kpod rmi --force imageID
kpod rmi imageID1 imageID2 imageID3
## SEE ALSO
kpod(1)

View file

@ -29,9 +29,15 @@ has the capability to debug pods/images created by crio.
# COMMANDS
## images
List images in local storage
## launch
Launch a pod
## rmi
Removes one or more locally stored images
## tag
Add one or more additional names to locally-stored image