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)
docker pull nginx
遇到这个问题
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)
修改数据源
再 /etc/docker 下面看看有没有 daemon.json
没有则创建一个,并如下添加一个数据源
{ "registry-mirrors":["https://pee6w651.mirror.aliyuncs.com"] }
保存重启 docker
systemctl restart docker.service
完成