List GCR private registry images

こ雲淡風輕ζ 提交于 2019-12-12 02:59:16

问题


I need to list the images that are stored in each registry. I have the user auth details, but I don't have the registry names. I need to list all the registries and the images located in each registry. Can I able to do it via Google Storage APIs?

I tried via Docker v2 APIs. Docker search is the only possible way, but I need to know the respective registry name for searching. I don't have those details. So I need another possible way to do it. Also i need to list the tags in each repo.


回答1:


There is a list of the registry domains here.

For project-id based repositories they are essentially: {us,eu,asia}.gcr.io and gcr.io.




回答2:


yes u can do it by fetching the image metadata from Google Storage based on the region. Bucket name will be artifacts.projectID.appspot.com



来源:https://stackoverflow.com/questions/35193602/list-gcr-private-registry-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!