How to determine the Docker image ID for a tag via Docker Hub API?

后端 未结 2 2024
既然无缘
既然无缘 2020-12-24 03:56

Given a tag `latest`, we want to find out another tag with the same image ID on Docker Hub.

Here is how to find out all tags for a repo with the Docker Hub API v2:

2条回答
  •  情歌与酒
    2020-12-24 03:57

    The above answer is great! In addition, if you want to use this on a private repo, you need to add basic auth with your registry user credentials, and the additional scope parameter 'account='

    (see http://www.cakesolutions.net/teamblogs/docker-registry-api-calls-as-an-authenticated-user)

提交回复
热议问题