使用阿里云容器镜像服务 ACR

1.搜索镜像

2.使用命名空间

3.从命令行登录阿里云 Registry

bash 复制代码
[root@host1 ~]# docker login crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com
Username: aliyun3109593796
Password: 

WARNING! Your credentials are stored unencrypted in '/root/.docker/config.json'.
Configure a credential helper to remove this warning. See
https://docs.docker.com/go/credential-store/

Login Succeeded

4.将镜像推送到阿里云 Registry

bash 复制代码
[root@host1 ~]# docker tag hello-world crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sjl/hello-world
[root@host1 ~]# docker images | grep hello-world
crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sjl/hello-world   latest    1b44b5a3e06a   4 weeks ago     10.1kB
hello-world                                                                        latest    1b44b5a3e06a   4 weeks ago     10.1kB

然后执行 docker push 命令推送该镜像

bash 复制代码
[root@host1 ~]# docker tag 1b44b5a3e06a  crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sji/hello-world
[root@host1 ~]# docker push crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sji/hello-world
Using default tag: latest
The push refers to repository [crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sji/hello-world]
53d204b3dc5d: Pushed 
latest: digest: sha256:19459a6bbefb63f83f137f08c1df645f8846e2cd1f44fe209294ebc505e6495e size: 524

5.从阿里云 Registry 拉取镜像

bash 复制代码
[root@host1 ~]# docker pull crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sji/hello-world
Using default tag: latest
latest: Pulling from docker_sji/hello-world
Digest: sha256:19459a6bbefb63f83f137f08c1df645f8846e2cd1f44fe209294ebc505e6495e
Status: Image is up to date for crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sji/hello-world:latest
crpi-xyb4ez7e48w6bh7l.cn-chengdu.personal.cr.aliyuncs.com/docker_sji/hello-world:latest
相关推荐
ltl5 小时前
存储性能建模:IOPS、吞吐与延迟
linux
刘某的Cloud6 小时前
ceph osd 导入导出 rbd volume 卷
linux·运维·ceph·volume
酸菜。8 小时前
dw_axi_dmac总结
linux
神奇霸王龙8 小时前
Agent 准入门控屠夫:5 旗舰 4 维度评估
linux·运维·数据库·ai·ai作画·agent·ai编程
Henry-SAP10 小时前
SAP S/4HANA引领物流ERP新生态
人工智能·云原生·sap·erp
张3蜂10 小时前
ALB、NLB、GWLB、CLB怎么选?
阿里云·云计算
这个DBA有点耶10 小时前
从DBA到数据架构师(五):数据架构演进中的技术债务管理
数据库·程序人生·云原生·架构·dba·数据库管理员
小绫网络安全11 小时前
Kali Linux渗透测试入门教程:从零搭建到实战攻防
linux·运维·服务器
allforgood11 小时前
控制启动过程
linux·运维·服务器
西安景驰电子11 小时前
《PTP精确时间协议系列》第一篇:从原理到应用,全面解读IEEE 1588
linux·运维·服务器·开发语言·网络·windows·php