上传Docker镜像到阿里云

 

1.配置阿里云的镜像加速器:https://cr.console.aliyun.com/#/accelerator

2.命令行登录到阿里云的doker仓库,--username为阿里云的用户名

docker login --username=cheergoivan registry.cn-hangzhou.aliyuncs.com

3.为本地镜像添加tag

docker tag f4ec85e8298f registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1

4.push到docker仓库

docker push registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1

5.登录阿里云查看已上传的镜像列表:https://cr.console.aliyun.com/#/imageList

在登陆时 出现 unauthorized: authentication required 的错误提示,

按照控制台里的提示我错把阿里云的登陆密码给修改了。其实在这里,在这里。

push一个本地镜像到阿里云仓库:https://www.jianshu.com/p/9b4cae6e3636

Docker镜像上传到阿里云的步骤详解:https://blog.csdn.net/qq_16605855/article/details/79961933

原文地址:https://www.cnblogs.com/cxscode/p/10171745.html