报错: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 |
vim /etc/docker/daemon.json |
进入这个文件以后输入i打开编辑模式,
添加以下内容:
1 2 3 4 5 6 7 8 9 10 11 12 |
{ "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" ] } |
重启:
1 2 |
systemctl daemon-reload systemctl restart docker |
from:https://blog.csdn.net/2202_75961842/article/details/142831560