Docker container can reach DNS but not resolve hosts

混江龙づ霸主 提交于 2019-12-03 09:57:51

They have fixed the issue in 1.8: https://github.com/docker/docker/issues/13381 Cheers.

After all this, a full reboot solved the problem - although, that still doesn't answer what it was.

If anyone knows what the actual cause was, I'm still curious, but for now the problem is gone.

You could install tools like dig inside the docker image to alanyse the issue.

use static hosts in your /etc/hosts file te make apt-get run inside the docker image. add these lines to your hosts file:

213.32.5.7 debian.mirrors.ovh.net
141.76.2.4 ftp.de.debian.org 
217.196.149.233 mirror-conova-security.debian.org
212.211.132.250 lobos.debian.org
212.211.132.250 security.debian.org 
5.153.231.4  http.debian.net 
151.101.12.204 cdn-fastly.deb.debian.org
151.101.12.204 security-cdn.debian.org
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!