What is the docker registry v2 API repository endpoint for getting a digest for an image?

According to https://docs.docker.com/registry/spec/api/ I can call /v2/<name>/tags/list to get a list of tags for this image. It works great, for example:

 {"name"=>"avi/test", "tags"=>["latest"]} 

However, I would like a digest for each tag. Yes, the "digest" is actually a hash of the manifest (at least I understood it best from the API, not 100% understandable). However, I would like to know what a unique identifier is for the "last" (and any other tag).

Use case. Perhaps someone has the version tag as the last one, and you want to check the relevance of the text:

 docker push avi/test:2.6 docker tag avi/test:2.6 avi/test:latest docker push avi/test:latest # build 2.7 docker push avi/test:2.7 # oops! Forgot to tag latest to 2.7 

In the above case, if I can check not only the tags that will give me "2.6", "2.7", "last", but also the digest (at least from the manifest), I can find which different tags indicate audit, etc.

+6
source share
1 answer

AFAIK, there is no digest API. However, according to

+7
source

All Articles