diff options
author | Aditya Rajan <arajan@redhat.com> | 2021-09-02 17:17:22 +0530 |
---|---|---|
committer | Aditya Rajan <arajan@redhat.com> | 2021-09-02 17:30:02 +0530 |
commit | cba114dd3617b7f793fa43817058d40505f4d454 (patch) | |
tree | 9c5393b852a63cb88272754bd3a26efb3190e7dd /pkg/domain/infra/abi/images.go | |
parent | 4207d959a68c1ee2b805b7113838580c14f4bbc6 (diff) | |
download | podman-cba114dd3617b7f793fa43817058d40505f4d454.tar.gz podman-cba114dd3617b7f793fa43817058d40505f4d454.tar.bz2 podman-cba114dd3617b7f793fa43817058d40505f4d454.zip |
manifest: rm should not remove referenced images.
Following PR makes sure that `podman manifest rm <list>` only removes
the named manifest list and not referenced images.
Bumping and squashing c/common to v0.43.3-0.20210902095222-a7acc160fb25
in same commit in order to make sure build commit test passes.
Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi/images.go')
-rw-r--r-- | pkg/domain/infra/abi/images.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go index e8739615d..a88d38a10 100644 --- a/pkg/domain/infra/abi/images.go +++ b/pkg/domain/infra/abi/images.go @@ -521,6 +521,7 @@ func (ir *ImageEngine) Remove(ctx context.Context, images []string, opts entitie libimageOptions := &libimage.RemoveImagesOptions{} libimageOptions.Filters = []string{"readonly=false"} libimageOptions.Force = opts.Force + libimageOptions.LookupManifest = opts.LookupManifest if !opts.All { libimageOptions.Filters = append(libimageOptions.Filters, "intermediate=false") } |