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
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.
source share