首页 > Web开发 > 详细

docker pull镜像报错:rror response from daemon: Get https://index.docker.io/v1/search?q=nginx&n=25: net/http: TLS handshake timeout

时间:2020-03-20 17:37:32      阅读:177      评论:0      收藏:0      [点我收藏+]

docker search镜像时发现报错:rror response from daemon: Get https://index.docker.io/v1/search?q=nginx&n=25: net/http: TLS handshake timeout,发现是DNS的问题:

1、通过修改DNS,但是重启网络后失效:技术分享图片

 

 

  [root@localhost ~]# vim /etc/resolv.conf
       [root@localhost ~]# systemctl restart network
2、在vim /etc/sysconfig/network-scripts/ifcfg-ens33 文件下添加DNS,重启网络有效

docker pull镜像报错:rror response from daemon: Get https://index.docker.io/v1/search?q=nginx&n=25: net/http: TLS handshake timeout

原文:https://www.cnblogs.com/XXdxgl/p/12533082.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!