diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-30 10:41:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 10:41:10 +0100 |
commit | 76019c31f535c6473e5f7d645cf42ca4477e2c33 (patch) | |
tree | e2d595054ce380b5074bf0217e0c405ded94178a /docs | |
parent | ad5579e1d9905996612dd135467ee2ee5f62b7d3 (diff) | |
parent | 656033ca969477ed809cbed57e752f959899d4f8 (diff) | |
download | podman-76019c31f535c6473e5f7d645cf42ca4477e2c33.tar.gz podman-76019c31f535c6473e5f7d645cf42ca4477e2c33.tar.bz2 podman-76019c31f535c6473e5f7d645cf42ca4477e2c33.zip |
Merge pull request #2205 from baude/prunelikedocker
podman image prune -- implement all flag
Diffstat (limited to 'docs')
-rw-r--r-- | docs/podman-image-prune.1.md | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/docs/podman-image-prune.1.md b/docs/podman-image-prune.1.md index db76b26e0..df912c380 100644 --- a/docs/podman-image-prune.1.md +++ b/docs/podman-image-prune.1.md @@ -6,23 +6,38 @@ podman-image-prune - Remove all unused images # SYNOPSIS **podman image prune** +[**-a**|**--all**] [**-h**|**--help**] # DESCRIPTION -**podman image prune** removes all unused images from local storage. An unused image -is defined as an image that does not have any containers based on it. +**podman image prune** removes all dangling images from local storage. With the `all` option, +you can delete all unused images. Unused images are dangling images as well as any image that +does not have any containers based on it. + +## OPTIONS +**--all, -a** + +Remove dangling images and images that have no associated containers. ## Examples ## -Remove all unused images from local storage +Remove all dangling images from local storage ``` $ sudo podman image prune f3e20dc537fb04cb51672a5cb6fdf2292e61d411315549391a0d1f64e4e3097e 324a7a3b2e0135f4226ffdd473e4099fd9e477a74230cdc35de69e84c0f9d907 +``` + +Remove all unused images from local storage +``` +$ sudo podman image prune -a +f3e20dc537fb04cb51672a5cb6fdf2292e61d411315549391a0d1f64e4e3097e +324a7a3b2e0135f4226ffdd473e4099fd9e477a74230cdc35de69e84c0f9d907 6125002719feb1ddf3030acab1df6156da7ce0e78e571e9b6e9c250424d6220c 91e732da5657264c6f4641b8d0c4001c218ae6c1adb9dcef33ad00cafd37d8b6 e4e5109420323221f170627c138817770fb64832da7d8fe2babd863148287fca 77a57fa8285e9656dbb7b23d9efa837a106957409ddd702f995605af27a45ebe + ``` ## SEE ALSO |