summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorKarthik Elango <kelango@redhat.com>2022-07-20 16:23:13 -0400
committerKarthik Elango <kelango@redhat.com>2022-08-04 14:55:03 -0400
commitcc8e4d5fec571d6bd69d3d2f8189e945b621ba7b (patch)
treeb47a7e62c202905d9ba2d592d0cfcf84152691ef /pkg/domain/infra/abi
parentb0ef621ebf196fd61189aebff3161927f0049c52 (diff)
downloadpodman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.tar.gz
podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.tar.bz2
podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.zip
remove image podman no prune
Signed-off-by: Karthik Elango <kelango@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/images.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index 94178a8e2..1f34cbd01 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -565,6 +565,7 @@ func (ir *ImageEngine) Remove(ctx context.Context, images []string, opts entitie
libimageOptions.Force = opts.Force
libimageOptions.Ignore = opts.Ignore
libimageOptions.LookupManifest = opts.LookupManifest
+ libimageOptions.NoPrune = opts.NoPrune
if !opts.All {
libimageOptions.Filters = append(libimageOptions.Filters, "intermediate=false")
}
@@ -581,7 +582,7 @@ func (ir *ImageEngine) Remove(ctx context.Context, images []string, opts entitie
rmErrors = libimageErrors
- return
+ return report, rmErrors
}
// Shutdown Libpod engine