上传Docker镜像到阿里云

 

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

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

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

3.为本地镜像添加tagui

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.net

 

在登录时 出现 unauthorized: authentication required 的错误提示,命令行

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

 

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

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

相关文章
相关标签/搜索