summaryrefslogtreecommitdiff
path: root/cmd/podman/images/prune.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-28 07:34:12 -0400
committerGitHub <noreply@github.com>2021-09-28 07:34:12 -0400
commitf2ffb96eb317012e94258a242f6dc907acd22c40 (patch)
treede48efeabf92b80e8cc69c456f33908124630769 /cmd/podman/images/prune.go
parent340166876eab09d3e363647213f162864a95d270 (diff)
parenta9a54eefab34b25628906a786d6c4ca302f743b1 (diff)
downloadpodman-f2ffb96eb317012e94258a242f6dc907acd22c40.tar.gz
podman-f2ffb96eb317012e94258a242f6dc907acd22c40.tar.bz2
podman-f2ffb96eb317012e94258a242f6dc907acd22c40.zip
Merge pull request #11737 from vrothberg/fix-11472
image prune: support removing external containers
Diffstat (limited to 'cmd/podman/images/prune.go')
-rw-r--r--cmd/podman/images/prune.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/images/prune.go b/cmd/podman/images/prune.go
index 7e6a29d94..6c39e5c69 100644
--- a/cmd/podman/images/prune.go
+++ b/cmd/podman/images/prune.go
@@ -41,6 +41,7 @@ func init() {
flags := pruneCmd.Flags()
flags.BoolVarP(&pruneOpts.All, "all", "a", false, "Remove all images not in use by containers, not just dangling ones")
+ flags.BoolVarP(&pruneOpts.External, "external", "", false, "Remove images even when they are used by external containers (e.g., by build containers)")
flags.BoolVarP(&force, "force", "f", false, "Do not prompt for confirmation")
filterFlagName := "filter"