当前位置:网站首页>Push the image to the Alibaba Cloud private warehouse
Push the image to the Alibaba Cloud private warehouse
2022-07-30 01:27:00 【Cappuccino - Haichen】
目录
一、Push the image to the Alibaba Cloud private warehouse
3、Click on the mirror repository to create it yourself
4、Click on the created repository name
一、Push the image to the Alibaba Cloud private warehouse
1、个人实例
请登录阿里云登录 - 欢迎登录阿里云,安全稳定的云计算服务平台,

创建个人实例,Enter the password and record it for future use.After the creation is complete, the running status is running.
2、点击个人实例

3、Click on the mirror repository to create it yourself

4、Click on the created repository name

4.1. 登录阿里云Docker Registry
$ docker login --username=ceam registry.cn-hangzhou.aliyuncs.com用于登录的用户名为阿里云账号全名,密码为开通服务时设置的密码.
您可以在访问凭证页面修改凭证密码.
4.2. 从Registry中拉取镜像
$ docker pull registry.cn-hangzhou.aliyuncs.com/test-cloud-1/test-cloud:[镜像版本号]4.3. 将镜像推送到Registry
$ docker login --username=ceam registry.cn-hangzhou.aliyuncs.com$ docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/test-cloud-1/test-cloud:[镜像版本号]$ docker push registry.cn-hangzhou.aliyuncs.com/test-cloud-1/test-cloud:[镜像版本号]
请根据实际镜像信息替换示例中的[ImageId]和[镜像版本号]参数.
4.4. 选择合适的镜像仓库地址
从ECS推送镜像时,可以选择使用镜像仓库内网地址.推送速度将得到提升并且将不会损耗您的公网流量.
如果您使用的机器位于VPC网络,请使用 registry-vpc.cn-hangzhou.aliyuncs.com 作为Registry的域名登录.
4.5. 示例
使用"docker tag"命令重命名镜像,并将它通过专有网络地址推送至Registry.
$ docker imagesREPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZEregistry.aliyuncs.com/acs/agent 0.7-dfb6816 37bb9c63c8b2 7 days ago 37.89 MB$ docker tag 37bb9c63c8b2 registry-vpc.cn-hangzhou.aliyuncs.com/acs/agent:0.7-dfb6816
使用 "docker push" 命令将该镜像推送至远程.
$ docker push registry-vpc.cn-hangzhou.aliyuncs.com/acs/agent:0.7-dfb68165、实操
5.1、先登录,Enter the password when creating the personal instance,After successful login, execute a command similar to the following

5.2、镜像版本

It can be seen that the push is successful
边栏推荐
猜你喜欢

App测试需要测什么

Leetcode70. 爬楼梯

LeetCode 2342. 数位和相等数对的最大和

Navicat for mysql破解版安装

TCP/IP 常见问题

Navicat for mysql crack version installation

【Flutter】Flutter inspector 工具使用详解,查看Flutter布局,widget树,调试界面等

Fabric Private Data Case
[email protected](using passwordYES)"/>Navicat报错:1045-Access denied for user [email protected](using passwordYES)

【MySQL必知必会】 范式 | ER模型
随机推荐
帽式滑环的工作原理
小白必看|不用编程的labview,ATECLOUD完全满足你的需求
Linux-安装MySQL(详细教程)
基于SSM开发实现校园疫情防控管理系统
百度智能云章淼:详解企业级七层负载均衡开源软件BFE
畅玩西安全攻略
[Microservice~Nacos] Configuration Center of Nacos
数据流图、数据字典
利用ESP32构造一个ZIGBEE的网络发送转接
【微服务~Nacos】Nacos之配置中心
软考 --- 数据库(5)数据库控制
LeetCode 2348. 全 0 子数组的数目
Linux - install MySQL (detailed tutorial)
聊聊性能测试环境搭建
[MySQL series] MySQL database foundation
经典毕业设计:基于SSM实现高校后勤报修系统
微信小程序开发之图片压缩方案
How many ways does Selenium upload files?I don't believe you have me
go语言解决自定义header的跨域问题
Object.freeze()学习