阿里云加速
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
修改daemon配置文件/etc/docker/daemon.json来使用加速器
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://yyhofojl.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
案例:
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://r8ureogc.mirror.aliyuncs.com"],
"dns": ["114.114.114.114","8.8.8.8"],
"data-root": "/data/docker"
}
223.5.5.5 阿里云的 DNS服务器。