docker pull 报错Get “https://registry-1.docker.io/v2/“: net/http: request canceled while waiting for c
报错 :Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
解决方法
配置加速地址
vim /etc/docker/daemon.json
添加以下内容
{
"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"]
}
保存
:wq
重启docker
systemctl daemon-reload
systemctl restart docker
原文地址:https://blog.csdn.net/jhgj56/article/details/142209517
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!