使用阿里云容器镜像服务 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
相关推荐
Clownseven2 小时前
阿里云ECS安装Windows Server 2022教程 | 纯文字分步指南
windows·阿里云·云计算
TG_yunshuguoji2 小时前
阿里云国际代理:稳定、高效、便捷的数据库服务-云数据库RDS
运维·服务器·数据库·阿里云·云计算
奋斗的蛋黄2 小时前
大数据与云计算知识点
大数据·hadoop·云计算
Twilight-pending3 小时前
计算机系统性能、架构设计、调度策略论文分类体系参考
人工智能·云原生·分类·数据挖掘
Insist7533 小时前
OpenEuler安装gitlab,部署gitlab-runner
linux·运维·服务器
zzz.103 小时前
【Kubernetes知识点】CRD客户资源定义及Gateway
云原生·容器·kubernetes
王道长服务器 | 亚马逊云3 小时前
如何利用 AWS 服务器优化跨境电商和 SEO 战略?
云计算·aws
在云上(oncloudai)3 小时前
AWS ALB 详解:智能流量调度器
云计算·aws
Nimsolax5 小时前
Linux信号
linux