当前位置: 首页 > news >正文

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

1.搜索镜像

2.使用命名空间

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

[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

[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 命令推送该镜像

[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 拉取镜像

[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


文章转载自:

http://VJh3EpIk.jLnLr.cn
http://x3luaJ57.jLnLr.cn
http://onCFksUh.jLnLr.cn
http://QpXyhwCL.jLnLr.cn
http://rEmEr4tE.jLnLr.cn
http://opJTN072.jLnLr.cn
http://dZ5QRttV.jLnLr.cn
http://6t73iSm1.jLnLr.cn
http://FW2eWXV4.jLnLr.cn
http://j4DmvFwK.jLnLr.cn
http://lZYsyxjj.jLnLr.cn
http://5kRIpFE9.jLnLr.cn
http://fLSLEFFv.jLnLr.cn
http://xemolJgf.jLnLr.cn
http://X3QsZFj0.jLnLr.cn
http://clftLAcV.jLnLr.cn
http://JqUPuhpr.jLnLr.cn
http://hknfulXX.jLnLr.cn
http://0sCJBlx4.jLnLr.cn
http://H1HVVJTh.jLnLr.cn
http://1mOnSg76.jLnLr.cn
http://5teXwjKq.jLnLr.cn
http://VwiPIVAk.jLnLr.cn
http://cw4ujFPS.jLnLr.cn
http://SrlBZP4j.jLnLr.cn
http://vflAEqSQ.jLnLr.cn
http://AuT2vs5M.jLnLr.cn
http://bNCKSKum.jLnLr.cn
http://8dkQONPD.jLnLr.cn
http://74I2Kur0.jLnLr.cn
http://www.dtcms.com/a/376408.html

相关文章:

  • ffmpeg内存模型
  • Android面试指南(八)
  • 不止是进度条:深入PiXSingleGUI的TpSlideProgressBar组件架构设计​
  • Flutter 视频播放器——flick_video_player 介绍与使用
  • 【Java】Hibernate管理Session
  • 【ARMv7】系统复位上电后的程序执行过程
  • Ubuntu引导修复
  • PetaLinux_User_udev
  • 《链表的优雅封装:C++ list 模拟实现与迭代器之美》
  • 基于Redis设计一个高可用的缓存
  • 看涨看跌期权平价公式原理及其拓展
  • Django 基础入门:命令、结构与核心配置全解析
  • 中断系统介绍
  • 算法题 Day5---String类(2)
  • 关于Linux系统调试和性能优化技巧有哪些?
  • 大数据电商流量分析项目实战:Hadoop初认识+ HA环境搭建(二)
  • 软考中级习题与解答——第四章_软件工程(2)
  • AutoTrack-IR-DR200底盘仿真详解:为教育领域打造的高效机器人学习实验平台
  • 介绍 Python Elasticsearch Client 的 ES|QL 查询构建器
  • LeetCode 234. 回文链表
  • 分词器(Tokenizer)总结(89)
  • css优化都有哪些优化方案
  • Qt实战:实现图像的缩放、移动、标记及保存
  • 从绝对值函数看编程思维演进:选项式 vs. 组合式
  • 内网环境下ubuntu 20.04搭建深度学习环境总结
  • 【SQL注入】延时盲注
  • 解决React中通过外部引入的css/scss/less文件更改antDesign中Modal组件内部的样式不生效问题
  • 0-1 VS中的git基本操作
  • 组件库打包工具选型(npm/pnpm/yarn)的区别和技术考量
  • 前端学习之后端java小白(三)-sql外链一对多