summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-01 15:38:06 +0100
committerGitHub <noreply@github.com>2021-11-01 15:38:06 +0100
commit75023e94823d62856aa81bfee605a67907d91438 (patch)
tree21d8d2deed981b87f8a01293d0c5549b1df39bfe /pkg/domain/infra
parent09aade7816e096550e805869f1300d7198aa8f91 (diff)
parent5c2d17e1c1c64b7e3ed1f9c82bf894cacf886d7c (diff)
downloadpodman-75023e94823d62856aa81bfee605a67907d91438.tar.gz
podman-75023e94823d62856aa81bfee605a67907d91438.tar.bz2
podman-75023e94823d62856aa81bfee605a67907d91438.zip
Merge pull request #12153 from flouthoc/allow-tagging-manifest-list-3.4
[backport] tag: Support tagging manifest list instead of resolving to images.
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/images.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index aac9a2507..df41f4f7e 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -321,7 +321,9 @@ func (ir *ImageEngine) Push(ctx context.Context, source string, destination stri
}
func (ir *ImageEngine) Tag(ctx context.Context, nameOrID string, tags []string, options entities.ImageTagOptions) error {
- image, _, err := ir.Libpod.LibimageRuntime().LookupImage(nameOrID, nil)
+ // Allow tagging manifest list instead of resolving instances from manifest
+ lookupOptions := &libimage.LookupImageOptions{ManifestList: true}
+ image, _, err := ir.Libpod.LibimageRuntime().LookupImage(nameOrID, lookupOptions)
if err != nil {
return err
}