dockers下载镜像报错: Get https://registry-1.docker.io/v2/: net/http: request canceled
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers).
解决方案:1)创建daemon.json文件
vim /etc/docker/daemon.json
2) 写入:
{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
3)重启:
[root@km docker]# systemctl daemon-reload
[root@km docker]# systemctl restart docker
4)完美解决。
————————————————
版权声明:本文为CSDN博主「那记忆微凉」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/BigData_Mining/article/details/86769696