summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/images.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-21 13:45:28 +0000
committerGitHub <noreply@github.com>2021-10-21 13:45:28 +0000
commit54f2c9a54034c01a542b2b1c79bbbceb7d12c260 (patch)
tree9fe7bfb41f073b7f5b02fe816a26cf3dbae55f87 /pkg/domain/infra/abi/images.go
parent6338e74cc9cf667ac90242112f1bbae6dc3a555d (diff)
parentf4f96962c0133726b0aac6352720bde411792c47 (diff)
downloadpodman-54f2c9a54034c01a542b2b1c79bbbceb7d12c260.tar.gz
podman-54f2c9a54034c01a542b2b1c79bbbceb7d12c260.tar.bz2
podman-54f2c9a54034c01a542b2b1c79bbbceb7d12c260.zip
Merge pull request #12057 from flouthoc/allow-tagging-manifest-list
tag: Support tagging manifest list instead of resolving to images
Diffstat (limited to 'pkg/domain/infra/abi/images.go')
-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 d2222c017..8878bf128 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -331,7 +331,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
}