问题描述
在windows11 WSL2的ubuntu 22.04中拉取镜像报错。错误为:
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/resolv.conf中的nameserver。如下图所示。
然后执行sudo systemctl restart docker