centOS7关于pull 命令时报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request c

参考文件:https://www.cnblogs.com/icebutterfly/p/9489133.htmlhtml

报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout   nginx

  或者docker

  request canceled while waiting for connection (Client.Timeout exceeded while awaiting headersjson

缘由:链接不到 镜像库所致;vim

解决办法:bash

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

vim /etc/docker/daemon.json
文件中加入:
2.而后重启守护进程

{ "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"] }

systemctl daemon-reload
systemctl restart docker
相关文章
相关标签/搜索