解决docker拉取镜像报错
报错信息如下:
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
网上试了很多方式,有的需要配置DNS解析,有的要禁用ipv6都不适用我的情况
最终下面加了这个解决!!!
解决:
sudo mkdir -p /etc/docker
sudo touch /etc/docker/daemon.json{"max-concurrent-downloads": 10,"max-concurrent-uploads": 5,"default-shm-size": "1G","debug": true,"experimental": false,"registry-mirrors":["https://x9r52uz5.mirror.aliyuncs.com","https://dockerhub.icu","https://docker.chenby.cn","https://docker.1panel.live","https://docker.awsl9527.cn","https://docker.anyhub.us.kg","https://dhub.kubesre.xyz"]
}