summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-20 10:28:45 -0400
committerGitHub <noreply@github.com>2021-09-20 10:28:45 -0400
commitf7d7fc2c8c70ca36cf2e9441cd1a8c40c042ba11 (patch)
tree5cdea0f9ffd5d83f067a89166b0a78cf8f6814b0 /pkg/domain/infra/tunnel
parentb906ecbb5bc887f5123a0f61a5a51782aa34357f (diff)
parent92ee2f372ba06ec7c09008d9a28e4c9ce35bf51a (diff)
downloadpodman-f7d7fc2c8c70ca36cf2e9441cd1a8c40c042ba11.tar.gz
podman-f7d7fc2c8c70ca36cf2e9441cd1a8c40c042ba11.tar.bz2
podman-f7d7fc2c8c70ca36cf2e9441cd1a8c40c042ba11.zip
Merge pull request #11651 from vrothberg/fix-11557
remote untag: support digests
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/images.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go
index db4e14aba..9a746d68c 100644
--- a/pkg/domain/infra/tunnel/images.go
+++ b/pkg/domain/infra/tunnel/images.go
@@ -165,6 +165,9 @@ func (ir *ImageEngine) Untag(ctx context.Context, nameOrID string, tags []string
if t, ok := ref.(reference.Tagged); ok {
tag = t.Tag()
}
+ if t, ok := ref.(reference.Digested); ok {
+ tag += "@" + t.Digest().String()
+ }
if r, ok := ref.(reference.Named); ok {
repo = r.Name()
}