一、出现镜像的链接问题基本上就是镜像源的问题,通过更换镜像源可以解决以下问题
问题
1、net/http: TLS handshake timeout.
2、net/http: request canceled (Client.Timeout exceeded while awaiting headers)
3、docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout.
4、error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/9b/9b9cb95443b5f846cd3c8cfa3f64e63b6ba68de2618a08875a119c81a8f96698/data?verify=1595989023-GNj6wnze%2FdmhMSp1hCFt50ZGms4%3D: dial tcp 104.18.121.25:443: i/o timeout.
解决方法:
将/etc/docker/daemon.json文件中的registry-mirrors替换成一下内容:
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/","https://hub-mirror.c.163.com","https://registry.docker-cn.com"]
方法来源: DOCKER镜像PULL不下来最终解决方法