阿里云部署Docker私有镜像仓库的实现步骤
目录
- 一.访问阿里云容器镜像服务地址
- 二、选择实例
- 三、创建命名空间
- 四、创建镜像仓库
- 五、上传镜像
- 六、查看推送好的镜像
- 参考:
一.访问阿里云容器镜像服务地址
地址:https://cr.console.aliyun.com/cn-beijing/instances
提示开通-》设置密码(为Docker仓库密码)
二、选择实例
三、创建命名空间
四、创建镜像仓库
五、上传镜像
选择对应的仓库
这里显示了具体的操作方法。
# 登录 [root@node01 ~]# docker login --username=****** registry.cn-beijing.aliyuncs.com Password: Login Succeeded # 镜像打标签 [root@node01 ~]# docker tag 667ee8fb158e registry.cn-beijing.aliyuncs.com/******/docker.io.mysql:8.0.28 # 推送镜像到阿里云私有仓库 (这里可能推送失败,可以再次推送) [root@node01 ~]# docker push registry.cn-beijing.aliyuncs.com/******/docker.io.mysql:8.0.28 The push refers to a repository [registry.cn-beijing.aliyuncs.com/******/docker.io.mysql] 20048e9ea24b: Pushed f654c732eb30: Pushed d89c67210fbb: Pushed 999500c33f79: Pushed e19e05fc6c0c: Pushed f1ce24a3a906: Pushed bcdcddd1968e: Pushed a6139270daa5: Pushed f8589c04a7c4: Pushed 726b89cb4adb: Pushed 83798bb64452: Pushed c1065d45b872: Pushed Put https://registry.cn-beijing.aliyuncs.com/v2/******/docker.io.mysql/blobs/uploads/2ce62062-178a-42e4-b037-59600a4644a2?_state=Xb1Y_P6A0OoXQb1UhZonGTHzJv8Y_n_wBr1p_8k4F7t7Ik5hbWUiOiJhbGlzY3kvZG9ja2VyLmlvLm15c3FsIiwiVVVJRCI6IjJjZTYyMDYyLTE3OGEtNDJlNC1iMDM3LTU5NjAwYTQ2NDRhMiIsIk9mZnNldCI6MzIsIlN0YXJ0ZWRBdCI6IjIwMjItMDMtMzFUMDQ6MTQ6NTNaIn0%3D&digest=sha256%3Aa3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4: net/http: TLS handshake timeout # 再次推送 [root@node01 ~]# docker push registry.cn-beijing.aliyuncs.com/******/docker.io.mysql:8.0.28 The push refers to a repository [registry.cn-beijing.aliyuncs.com/******/docker.io.mysql] 20048e9ea24b: Layer already exists f654c732eb30: Layer already exists d89c67210fbb: Layer already exists 999500c33f79: Layer already exists e19e05fc6c0c: Layer already exists f1ce24a3a906: Layer already exists bcdcddd1968e: Layer already exists a6139270daa5: Layer already exists f8589c04a7c4: Layer already exists 726b89cb4adb: Layer already exists 83798bb64452: Layer already exists c1065d45b872: Layer already exists 8.0.28: digest: sha256:8cdf596eb3fba84ae6d0ad683d330dcaf87ef8fb51e4d5dd9f1e289c5012e0f8 size: 2828
六、查看推送好的镜像
参考:
到此这篇关于阿里云部署Docker私有镜像仓库的实现步骤的文章就介绍到这了,更多相关阿里云部署Docker私有镜像仓库内容请搜索我们以前的文章或继续浏览下面的相关文章希望大家以后多多支持我们!
赞 (0)