Docker Error response from daemon read: connection refused

在搜索镜像的时候出现这个问题,记录一下,后续待查证


[root@www ~]# docker search tomcat
Error response from daemon: Get https://index.docker.io/v1/search?q=tomcat&n=25: dial tcp: lookup index.docker.io on [::1]:53: read udp [::1]:48007->[::1]:53: read: connection refused

虚拟机中添加一个DNS解析,解决问题
vim /etc/resolv.conf

添加一行:
nameserver 114.114.114.114

你可能感兴趣的:(Docker)