Docker 设置国内镜像源
您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器
具体配置如下:
{"registry-mirrors" : ["https://registry.docker-cn.com","http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn","https://cr.console.aliyun.com","https://mirror.ccs.tencentyun.com"]
}
配置完成后,需要重新加载一下,然后重启docker
systemctl daemon-reload
systemctl restart docker
docker info