Docker DNS not working

I want to use a Docker container, and right now I have Internet access in the container. But I don’t have DNS. I already made the proper changes in /etc/default/docker:

DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

But the issue persists…

  • Setting $PATH in docker image?
  • Cant connect from Node Js (in host) to a MySql container
  • How to define Kubernetes Job using a private docker registry?
  • Docker keep up container which app on ubuntu
  • Does the GOGS Docker Container run an SSH Daemon?
  • docker container changes not saving, osx
  • Running docker shell on Windows
  • Can travis-ci run docker?
  • How to mount local host directory in docker container using remote api
  • Create a remote private registry
  • How to circumvent “Read-only file system” error on Docker version 0.11 or greater when running sysctl -w during an image build?
  • How to forward data from a host computer to a Docker container?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.