From e037427035dc57e536478362fc19e30a400bc327 Mon Sep 17 00:00:00 2001 From: baude Date: Sat, 1 Dec 2018 09:49:46 -0600 Subject: 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 --- completions/bash/podman | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'completions/bash') 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=" " -- cgit v1.2.3-54-g00ecf