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 /pkg/domain/infra/tunnel/images.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 'pkg/domain/infra/tunnel/images.go')
-rw-r--r-- | pkg/domain/infra/tunnel/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go index 282770613..d41a20348 100644 --- a/pkg/domain/infra/tunnel/images.go +++ b/pkg/domain/infra/tunnel/images.go @@ -95,7 +95,7 @@ func (ir *ImageEngine) Prune(ctx context.Context, opts entities.ImagePruneOption f := strings.Split(filter, "=") filters[f[0]] = f[1:] } - options := new(images.PruneOptions).WithAll(opts.All).WithFilters(filters) + options := new(images.PruneOptions).WithAll(opts.All).WithFilters(filters).WithExternal(opts.External) reports, err := images.Prune(ir.ClientCtx, options) if err != nil { return nil, err |