summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/images.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-10-02 10:51:01 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-10-02 11:04:05 +0200
commit6c151b98b6d4d6a6d9acf64aaafdb5265d07932e (patch)
treef65d1e7afd888d236b7b354b8a346c53906bef02 /pkg/domain/infra/abi/images.go
parentdefd427503c2b36d64686b6ef327ce16810855c1 (diff)
downloadpodman-6c151b98b6d4d6a6d9acf64aaafdb5265d07932e.tar.gz
podman-6c151b98b6d4d6a6d9acf64aaafdb5265d07932e.tar.bz2
podman-6c151b98b6d4d6a6d9acf64aaafdb5265d07932e.zip
image prune: remove all candidates
Make sure to remove images until there's nothing left to prune. A single iteration may not be sufficient. Fixes: #7872 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi/images.go')
-rw-r--r--pkg/domain/infra/abi/images.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index d56dc7d94..965c63bec 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -46,11 +46,7 @@ func (ir *ImageEngine) Exists(_ context.Context, nameOrID string) (*entities.Boo
}
func (ir *ImageEngine) Prune(ctx context.Context, opts entities.ImagePruneOptions) (*entities.ImagePruneReport, error) {
- return ir.pruneImagesHelper(ctx, opts.All, opts.Filter)
-}
-
-func (ir *ImageEngine) pruneImagesHelper(ctx context.Context, all bool, filters []string) (*entities.ImagePruneReport, error) {
- results, err := ir.Libpod.ImageRuntime().PruneImages(ctx, all, filters)
+ results, err := ir.Libpod.ImageRuntime().PruneImages(ctx, opts.All, opts.Filter)
if err != nil {
return nil, err
}