docker 拉取镜像缓慢问题解决方案
1.添加镜像源
1.编辑daemon.json文件
vim /etc/docker/daemon.json{
"registry-mirrors":[
"https://9cpn8tt6.mirror.aliyuncs.com",
"https://registry.docker-cn.com"
]
}如下载失败切换镜像源
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]2.重启docker
systemctl start docker;2.修改服务器DNS
1.命令修改etc/resolv.conf文件
vi /etc/resolv.conf