-
配置阿里云的镜像加速器:https://cr.console.aliyun.com/#/accelerator
-
命令行登录到阿里云的doker仓库,--username为阿里云的用户名
docker login --username=cheergoivan registry.cn-hangzhou.aliyuncs.com
- 为本地镜像添加tag
docker tag f4ec85e8298f registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1
- push到docker仓库
docker push registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1
- 登录阿里云查看已上传的镜像列表:https://cr.console.aliyun.com/#/imageList
网友评论