公司电脑尝试拉取ubuntu镜像报错如下:
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多次也没有效果
查看docker的http-proxy.conf文件是否有多余的内容
sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
发现代理配置了192网段的IP,删掉后重启docker可以正常拉取
systemctl daemon-reload
systemctl restart docker