Docker container can reach DNS but not resolve hosts
问题 I'm having an interesting problem running docker containers: out of the blue, I'm not able to resolve DNS from within the container. Here's a rundown: Nothing is resolving; apt-get, pip, one-off ping containers, etc. Running docker run -it --dns=8.8.8.8 ubuntu ping www.google.com results in ping: unknown host www.google.com both with and without the --dns flag. I can reach 8.8.8.8 both from inside and outside the containers. docker run -it ubuntu ping 8.8.8.8 works. I've configured the