docker下载镜像报错:Get https://registry-1.docker.io/v2/
1、Error
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers).
2、解决方案
vi /etc/docker/daemon.json
{
"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}
[root@Linux] systemctl daemon-reload
[root@Linux] systemctl restart docker