docker pull的时间报错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)
办理办法
1.配置加速地点
vi /etc/docker/daemon.json
2.添加以下内容
{
"registry-mirrors": ["https://docker.1panel.live"]
}
大概
{
"registry-mirrors": [
"https://docker.211678.top",
"https://docker.1panel.live",
"https://hub.rat.dev",
"https://docker.m.daocloud.io",
"https://do.nark.eu.org",
"https://dockerpull.com",
"https://dockerproxy.cn",
"https://docker.awsl9527.cn"
]
}
大概
{
"registry-mirrors": ["https://docker.m.daocloud.io"]
}
大概
{
"registry-mirrors": [
"https://registry.cn-hangzhou.aliyuncs.com",
"https://swr.cn-north-4.myhuaweicloud.com",
"https://mirror.ccs.tencentyun.com"
],
"dns": ["8.8.8.8", "8.8.4.4"],
"runtimes": {
"nvidia": {
"args": [],
"path": "nvidia-container-runtime"
}
}
}
3.然后生存
:wq
4.重启docker
systemctl daemon-reload
systemctl restart docker
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |