Docker Hub官方网站已经迁移到https://registry.hub.docker.com,从https://hub.docker.com/。
如果尝试从以下URL获取映像docker pull registry.hub.docker.com/busybox
,则会显示:
registry.hub.docker.com/busybox: this image was pulled from a legacy registry.
Important: This registry version will not be supported in future versions of docker.
但如果我使用 docker pull registry.hub.docker.com/busybox
。
它无法拉取映像。
当使用 curl -k https://registry.hub.docker.com/v1/repositories/busybox/tags
时,情况相同。
2022/Q3更新:使用docker.io,例如docker.io/nginx。
docker.io
看起来是最安全的 URL 选择(未来最不可能更改或出现错误)。 注册表文档 表示,“docker pull ubuntu ...” 只是 “docker pull docker.io/library/ubuntu” 命令的简写。 - wisbucky