一、阿里云容器镜像服务介绍
阿里云容器镜像服务(简称 ACR)是面向容器镜像、Helm Chart 等符合 OCI 标准的云原生制品安全托管及高效分发平台。 ACR 支持全球同步加速、大规模/大镜像分发加速、多代码源构建加速等全链路提效,与容器服务 ACK 无缝集成,帮助企业降低交付复杂度,打造云原生应用一站式解决方案。
二、进入镜像管理控制台
三、查看镜像仓库
四、从docker hub下载镜像
1.下载docker镜像
docker pull tomcat:8.5.46-jdk8-openjdk
2.查看镜像
[root@node ~]# docker images tomcat:8.5.46-jdk8-openjdk
REPOSITORY TAG IMAGE ID CREATED SIZE
tomcat 8.5.46-jdk8-openjdk 8973f493aa0a 3 years ago 508MB
五、客户端登录Registry实例
sudo docker login --username=1577****@163.com registry.cn-hangzhou.aliyuncs.com
六、上传镜像到阿里云镜像仓库
1.将镜像重打标签
docker tag tomcat:8.5.46-jdk8-openjdk registry.cn-hangzhou.aliyuncs.com/jeson/tomcat:8.5.46-jdk8-openjdk
2.将镜像推送到阿里云镜像仓库
[root@node ~]# docker push registry.cn-hangzhou.aliyuncs.com/jeson/tomcat:8.5.46-jdk8-openjdk
The push refers to repository [registry.cn-hangzhou.aliyuncs.com/jeson/tomcat]
3d7c5e9cb860: Pushed
bee27ee72bbd: Pushed
5161954b2663: Pushed
57e6a3d20ce9: Pushed
1690af51cb08: Pushed
5a30999619d7: Pushed
2e669e0134f5: Pushed
8bacec4e3446: Pushed
26b1991f37bd: Pushed
55e6b89812f3: Pushed
8.5.46-jdk8-openjdk: digest: sha256:30f172d045ebfd83bb2fbc57d70064f766cc67afeca0f79bb89f819cce7400d6 size: 2422
七、在阿里云ACR控制台查看镜像