错误信息:Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
- 原因是Docker默认镜像源是国外的,修改镜像源为国内的;
解决办法:
- vim /etc/docker/daemon.json
- 新增 {“registry-mirrors”:[“http://hub-mirror.c.163.com”] }
- 重启Docker服务,systemctl restart docker.service
问题解决,成功拉去到资源!