diff options
author | baude <bbaude@redhat.com> | 2018-12-01 09:49:46 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2018-12-05 19:57:54 -0600 |
commit | e037427035dc57e536478362fc19e30a400bc327 (patch) | |
tree | 3fb14dc437f58f29e197a43aaefa0e0254251f43 /completions/bash | |
parent | 75b19ca8abe1957f3c48035767960a6b20c10519 (diff) | |
download | podman-e037427035dc57e536478362fc19e30a400bc327.tar.gz podman-e037427035dc57e536478362fc19e30a400bc327.tar.bz2 podman-e037427035dc57e536478362fc19e30a400bc327.zip |
Add ability to prune containers and images
Allow user to prune unused/unnamed images, the layer images from building,
via podman rmi --prune.
Allow user to prune stopped/exiuted containers via podman rm --prune.
This should resolve #1910
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'completions/bash')
-rw-r--r-- | completions/bash/podman | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 9518cfa22..79ab91410 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -871,6 +871,7 @@ _podman_container() { create diff exec + exists export inspect kill @@ -879,6 +880,7 @@ _podman_container() { mount pause port + prune refresh restart restore @@ -1210,11 +1212,13 @@ _podman_image() { " subcommands=" build + exists history import inspect load ls + prune pull push rm @@ -2227,6 +2231,26 @@ _podman_container_runlabel() { esac } +_podman_images_prune() { + local options_with_args=" + " + + local boolean_options=" + -h + --help + " +} + +_podman_container_prune() { + local options_with_args=" + " + + local boolean_options=" + -h + --help + " +} + _podman_container_exists() { local options_with_args=" " |