diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-28 07:34:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 07:34:12 -0400 |
commit | f2ffb96eb317012e94258a242f6dc907acd22c40 (patch) | |
tree | de48efeabf92b80e8cc69c456f33908124630769 /cmd/podman/images/prune.go | |
parent | 340166876eab09d3e363647213f162864a95d270 (diff) | |
parent | a9a54eefab34b25628906a786d6c4ca302f743b1 (diff) | |
download | podman-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.go | 1 |
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" |