异常信息:
Error response from daemon: Get https://index.docker.io/v1/search?q=mysql&n=25: dial tcp: lookup index.docker.io on [::1]:53: read udp [::1]:56099->[::1]:53: read: connection refused
解决办法:
1.修改宿主机的DNS
命令:vi /etc/resolv.conf
2.添加下面内容
nameserver 8.8.8.8
nameserver 8.8.4.4 #两个IP地址是谷歌公开的DNS
3.修改成如下图
4.重启网卡
systemctl restart network