1、使用阿里云的registry上传下载镜像
首先,在阿里云注册一个账号,并登录,选择创建个人实例,就能看到如下图所示的内容
[root@docker ~]# vi /etc/docker/daemon.json,编辑这个文件,将阿里云的网站写进去
网址写错会报错: Job for docker.service failed because start of the service was attempted too often. See "systemctl status docker.service" and "journalctl -xe" for details.
检查,并重新编辑一下这个文件 [root@docker ~]# vi /etc/docker/daemon.json就可以
[root@docker ~]# systemctl daemon-reload,重启这个服务
[root@docker ~]# systemctl restart docker 重启docker
查看我们自己创建仓库的基本信息,如下图所示