summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunal Kushwaha <kunal.kushwaha@gmail.com>2019-11-29 15:18:12 +0900
committerKunal Kushwaha <kunal.kushwaha@gmail.com>2019-12-02 11:47:56 +0900
commitbca01ed46121aebd7b770cd98130f1b14834fc91 (patch)
tree02c95c5d0adc50478ee1e15bd2959fea87216d6f
parent10c37a2c93c76fb698e41dbdf076793c9a16d02b (diff)
downloadpodman-bca01ed46121aebd7b770cd98130f1b14834fc91.tar.gz
podman-bca01ed46121aebd7b770cd98130f1b14834fc91.tar.bz2
podman-bca01ed46121aebd7b770cd98130f1b14834fc91.zip
man page updated with examples of filter option
examples with filter added Signed-off-by: Kunal Kushwaha <kunal.kushwaha@gmail.com>
-rw-r--r--completions/bash/podman3
-rw-r--r--docs/source/markdown/podman-container-prune.1.md22
2 files changed, 25 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 6d145030f..f1f64e347 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -2816,9 +2816,12 @@ _podman_images_prune() {
_podman_container_prune() {
local options_with_args="
+ --filter
"
local boolean_options="
+ -f
+ --force
-h
--help
"
diff --git a/docs/source/markdown/podman-container-prune.1.md b/docs/source/markdown/podman-container-prune.1.md
index d8a4b7f4e..856843a80 100644
--- a/docs/source/markdown/podman-container-prune.1.md
+++ b/docs/source/markdown/podman-container-prune.1.md
@@ -20,6 +20,8 @@ Print usage statement
Remove all stopped containers from local storage
```
$ sudo podman container prune
+WARNING! This will remove all stopped containers.
+Are you sure you want to continue? [y/N] y
878392adf2e6c5c9bb1fc19b69d37d2e98c8abf9d539c0bce4b15b46bbcce471
37664467fbe3618bf9479c34393ac29c02696675addf1750f9e346581636cde7
ed0c6468b8e1cb641b4621d1fe30cb477e1fefc5c0bceb66feaf2f7cb50e5962
@@ -28,6 +30,26 @@ fff1c5b6c3631746055ec40598ce8ecaa4b82aef122f9e3a85b03b55c0d06c23
602d343cd47e7cb3dfc808282a9900a3e4555747787ec6723bb68cedab8384d5
```
+Remove all stopped containers from local storage without confirmation.
+```
+$ sudo podman container prune -f
+878392adf2e6c5c9bb1fc19b69d37d2e98c8abf9d539c0bce4b15b46bbcce471
+37664467fbe3618bf9479c34393ac29c02696675addf1750f9e346581636cde7
+ed0c6468b8e1cb641b4621d1fe30cb477e1fefc5c0bceb66feaf2f7cb50e5962
+6ac6c8f0067b7a4682e6b8e18902665b57d1a0e07e885d9abcd382232a543ccd
+fff1c5b6c3631746055ec40598ce8ecaa4b82aef122f9e3a85b03b55c0d06c23
+602d343cd47e7cb3dfc808282a9900a3e4555747787ec6723bb68cedab8384d5
+
+```
+
+Remove all stopped containers from local storage created within last 10 minutes
+```
+$ sudo podman container prune --filter until="10m"
+WARNING! This will remove all stopped containers.
+Are you sure you want to continue? [y/N] y
+3d366295e33d8cc612c4d873199bacadd55088d90d17dcafaa9a2d317ad50b4e
+```
+
## SEE ALSO
podman(1), podman-ps