昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期四, 十二月 19, 2019

[网络技术]How to list all remote docker images in the repo?

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]


没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.