Docker镜像报错:Error response from daemon: Get https://index.docker.io/v1/search?q=win7&n=25: net/http: TLS handshake timeout

 

解决方案:
1.打开终端,su root 输入密码
2.打开 vim /etc/docker/daemon.json(若没有自行创建)
3.写入:

{
    "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}

 

这里的网站有很多,亲测这个最好用
4.重启一下docker:

systemctl daemon-reload
systemctl restart docker

成功解决
 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐