原文地址:https://docs.docker.com/registry/
什么是Registry
Registry就是一个镜像仓库,是一个开源的,基于Apache license的镜像仓库,既然是仓库,当然可以存,也可以取了,我们之前本地没有的镜像,其实就是从默认的镜像仓库取的
为什么要使用它
1:你可以随意控制你镜像存储的位置
2:完全掌控仓库中的镜像的分发途径
3:可以将镜像存储和分发整合到你内部开发流程
替代品
用户如果在寻找稳定,维护少,随时准备解决问题的一个Registry的话,可以使用Docker Hub ,Docker Hub 提供了免费镜像服务已经其它账户管理等功能
如果需要企业级服务,可以参考Docker Hub Enterprise.
最低要求
Docker Registry 版本必须高于1.6(可以等于),
TL;DR
# Start your registry
docker run -d -p 5000:5000 registry:2
# Pull (or build) some image from the hub
docker pull ubuntu
# Tag the image so that it points to your registry
docker tag ubuntu localhost:5000/myfirstimage
# Push it
docker push localhost:5000/myfirstimage
# Pull it back
docker pull localhost:5000/myfirstimage
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021