本文主要介绍了阿里云部署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私有镜像仓库的实现步骤的文章就介绍到这了,更多相关阿里云部署Docker私有镜像仓库内容请搜索编程学习网以前的文章希望大家以后多多支持编程学习网!
沃梦达教程
本文标题为:阿里云部署Docker私有镜像仓库的实现步骤
猜你喜欢
- IIS搭建ftp服务器的详细教程 2022-11-15
- CentOS7安装GlusterFS集群的全过程 2022-10-10
- 解决:apache24 安装后闪退和配置端口映射和连接超时设置 2023-09-11
- KVM虚拟化Linux Bridge环境部署的方法步骤 2023-07-11
- 【转载】CentOS安装Tomcat 2023-09-24
- 阿里云ECS排查CPU数据分析 2022-10-06
- 教你在docker 中搭建 PHP8 + Apache 环境的过程 2022-10-06
- 利用Docker 运行 python 简单程序 2022-10-16
- nginx中封禁ip和允许内网ip访问的实现示例 2022-09-23
- CentOS_mini下安装docker 之 安装docker CE 2023-09-23