docker拉命令时报错 ERROR: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout

报错:
关于pull 命令时报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers
在这里插入图片描述
原因:连接不到 镜像库所致;

解决办法:

1.运行命令,修改文件:

vim /etc/docker/daemon.json
文件中加入:
{ "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"] }

2.然后重启守护进程

systemctl daemon-reload

猜你喜欢

转载自blog.csdn.net/qq_42812036/article/details/104446174