Skip to content

Get digest of image by its tag name #1807

Closed Answered by ibazulic
vramik asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the API:

curl -H "Authorization: Bearer your-token-here" https://quay.io/api/v1/repository/{NAMESPACE}/{REPOSITORY}/tag/?specific-tag-name

The output will contain the manifest digest of the tag you indicated. For instance:

$ curl "https://quay.io/api/v1/repository/coreos/etcd/tag/?specificTag=v3.4.24-ppc64le" | jq '.'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   311  100   311    0     0   2381      0 --:--:-- --:--:-- --:--:--  2392
{
  "tags": [
    {
      "name": "v3.4.24-ppc64le",
      "reversion": false,
      "start_ts": 1676511950,
      "manifest_di…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@vramik
Comment options

Answer selected by ibazulic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants