1, 登录阿里云镜像仓库
--username 后面跟上账户名, 以及服务器地址
2, 查看本次 docker 镜像
docker images 或者 docker images ls
3,push 我们需要上传至阿里云镜像仓库的 docker 镜像
注意:
1), 仓库名必须与阿里云所在仓库名相匹配
2), 非 docker-hub 的镜像仓库, 名称空间前需要指明服务器地址, 及这里的 registry.cn-hangzhou.aliyuncs.com
4, 在阿里云镜像仓库即可看到我们上传的 docker 镜像
来源: http://www.bubuko.com/infodetail-3120013.html