docker无法下载镜像,配置加速器为啥也不管用

docker: 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).
See ‘docker run --help’.

image
为什么呢,有没有佬告诉我下

1 个赞

我都是挂代理下原版的

换一家的试试


按照这个来的

可以问问ai,看样子你配置的镜像没生效

嗯 ai就让替换 阿里云和网易的 ,但是也没啥效果

配置完以后重新载入了吗
systemctl daemon-reload
systemctl restart docker

推荐个docker.1ms.run

加载了 我试试这个 不行换个方式重装docker

docker早些时候就被sni阻断的方式污染了,跟Linuxdo现状差不多。

可以开启代理软件的tun模式解决;
也可以电脑本地安装dns加密软件比如dnscrypt工具解决(这个需要熟悉网络,因为会入侵本地环境)

1 个赞

也是刚刚出这个问题。

sudo systemctl edit docker.service

[Service]
Environment="HTTP_PROXY=http://10.160.14.179:7890"
Environment="HTTPS_PROXY=http://10.160.14.179:7890"
Environment="NO_PROXY=localhost,127.0.0.1"

sudo systemctl daemon-reload
sudo systemctl restart docker
systemctl status docker.service

试试给docker加上代理 去掉镜像加速地址后使用

给docker上代理或者多换几个镜像源试试
这个问题是镜像源没处理指向官方登录服务器的请求

嗯嗯 我解决了 我想起来,这个服务器长时间没用,时间不对,我重新同步了下,就ok了 :joy:

1 个赞