tags: docker
If you have a private docker repo (such as azure docker registry), and would like to list all the remote images, what would you do?
If you have the portal access such as azure portal, you can see all your images easily. But if you only have the credentials for the repo, then what can you do?
It's actual very easy to do.
Docker registry provides a easy to use restful API to access images info. You can use any HTTP client to access it. In the following example, I use curl
[code]
curl https://username:password@repo_domain/v2/_catalog
{"repositories": ["image1", "image2", "image3" ...]}
[/code]
没有评论:
发表评论