目录
一、使用aliyun的registry上传下载镜像https://cr.console.aliyun.com/cn-hangzhou/repositories
一、使用aliyun的registry上传下载镜像
https://cr.console.aliyun.com/cn-hangzhou/repositories
1.先在阿里云注册一个本地仓库
容器镜像服务 (aliyun.com)https://cr.console.aliyun.com/cn-hangzhou/instance/repositories
2.给镜像打上标签
3.在docker上登陆自己的阿里云账号
4.把镜像上传到阿里云
5.查看是否成功
6.删除本地镜像
7.下拉镜像到本地
二、使用registry镜像运行容器上传下载镜像
1.拉取registry镜像
2.启动registry容器
3.打上标签
4.修改/etc/docker/daemon.json配置文件
5.重启docker和 重启容器
需要修改daemon.json 文件的后缀名为daemon.demo 不然会报错,重启后改回来