windows 10下Docker获取镜像报错docker:

Error response from daemon: Get https://index.docker.io/v1/search?q=dotnet&n=25: dial tcp: lookup index.docker.io on 192.168.65.1:53: read udp 192.168.65.3:60225->192.168.65.1:53: i/o timeout

查了N多资料,没有一个靠谱的,修改dns,settings里面设置镜像加速地址,都无效

后面找到了一个方法,大家可以尝试下:

配置文件默认在C:\Users\你的用户名.docker\内。有两个配置文件config.json跟daemon.json

修改daemon.json

{
  "registry-mirrors": ["你的镜像加速地址"],
  "insecure-registries": [],
  "debug": true,
  "experimental": false
}