当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Graphical LeetCode - 593. Valid Squares (Difficulty: Moderate)
Leetcode69. x 的平方根
在服务器上运行node流程
推荐系统:用户“行为数据”的采集【使用Kafaka、Cassandra处理数据】【如果与业务数据重合,也需要独自采集】
解决vscode的Network不显示问题
The Rising Star of Interface Test Automation-YApi Interface Management Platform
CMake Tutorial 巡礼(1)_基础的起点
排序相关应用
CAPL中的键值对(hash)数据类型
sqlserver 多行合并成一行
Win11的WSL2系统更换磁盘和wsl使用简介
STM32 - OLED display experiment
「MySQL」- 基础增删改查
Huawei's "genius boy" Zhihui Jun has made a new work, creating a "customized" smart keyboard from scratch
SSM integration case
【LeetCode每日一题】——230.二叉搜索树中第K小的元素
微信小程序开发之图片压缩方案
Towards Better Understanding of Self-Supervised Representations / Q-Score
【微服务~Nacos】Nacos服务提供者和服务消费者
1.2Recyclerview实现Item点击事件









