docker中心urldevise的意义是什么?
https://registry.hub.docker.com/_/ubuntu/
产品名称前的url中有一个_
。
这是为了什么?
如果您在dockerhub
上有一个名为foobar
的帐户:
# pull from your account (foobar) docker pull foobar/ubuntu:latest
否则,如果你省略了用户名:
# pull from the official account (library) docker pull ubuntu:latest # almost the same as docker pull library/ubuntu:latest
下划线( _
)是用于发布官方存储库的特殊命名空间。
唯一的区别是你会得到不同的图像名称与相同的图像ID:
$ docker pull ubuntu:latest $ docker pull library/ubuntu:latest $ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE library/ubuntu latest 86ce37374f40 7 days ago 192.7 MB ubuntu latest 86ce37374f40 7 days ago 192.7 MB