reg icon indicating copy to clipboard operation
reg copied to clipboard

Add option to map digest to tag

Open adriananeci opened this issue 4 years ago • 0 comments

Is there a way to map a digest to a tag? Given an image for which we know its digest, I would like to map it to its corresponding tag.

The easiest way I found is to use manifest section from tags/list output , e.g:

curl -s https://k8s.gcr.io/v2/kube-apiserver/tags/list | jq '.manifest["sha256:ffdc2f826e3de98608d7e9b41ca0015ec45f066687491142d18a2879fb4a0c22"].tag'

[
  "v1.17.13"
]

adriananeci avatar Sep 20 '21 10:09 adriananeci