正在浏览 docker 个存储库

Browsing docker repositories

在我看来,当hub.docker.com下的那些存储库时,我可以直接通过名称使用它们。比方说,ubuntu。我可以直接通过“FROM ubuntu:latest”在文件 Dockerfile 中使用它,并且可以知道 link https://hub.docker.com/_/ubuntu?tab=tags

中除最新之外的任何标签

但是说到 repo 不在 hub.docker.com 之下。以微软sdk为例。 它在 mcr.microsoft.com/dotnet/sdk 下 (https://github.com/microsoft/containerregistry). I cannot use the same way as above to know what is the available tags. Instead, I need to read the "Readme.md" there and then I know the way to query the tags is by the link https://mcr.microsoft.com/v2/dotnet/sdk/tags/list.

是否有任何通用的方法来浏览存储库和特定存储库的可用标签?

例如,如果您在以下位置有一个注册表:registry.example.com:5000 和 HTTPS 代理,您可以使用地址:https://registry.example.com:5000/v2/_catalog 列出所有存储库。

https://registry.example.com:5000/v2/<repo_name>/tags/list

处的标签类似

参考文献:
https://docs.docker.com/registry/spec/api/#listing-repositories https://docs.docker.com/registry/spec/api/#listing-image-tags