推送镜像至aliyun镜像仓库

前言

本文介绍将镜像推送至阿里云个人镜像仓库。

 

一、注册阿里云

阿里云-计算,为了无法计算的价值

地址在上面

二、创建镜像中心

登录阿里云后,打开阿里云的容器镜像服务页面。找到“实例列表”。创建个人实例。

创建完成后,需要设置registry密码,按要求创建即可。

三、创建命名空间

四、创建镜像仓库

五、基础操作

六、虚拟机登陆阿里云镜像仓库

[root@localhost cig]# docker login --username=litao_wang registry.cn-hangzhou.aliyuncs.com
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

七、重命名打包镜像

[root@localhost cig]# docker tag c061e5808198 registry.cn-hangzhou.aliyuncs.com/cig/influxdb:1.0

八、上传至镜像仓库

docker push registry.cn-hangzhou.aliyuncs.com/cig/influxdb:1.0 

九 、web页面查看


十、登出阿里云

docker logout registry.cn-hangzhou.aliyuncs.com

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值