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…

  • docker-machine fails to start host
  • MySQL databases are gone when the docker container is shutdown
  • Docker localhost process not working on Windows
  • Elasticsearch 5.1 and Docker - How to get networking configured properly to reach Elasticsearch from the host
  • Docker Container/AWS EC2 Public DNS Refusing to Connect
  • Tensorflow docker container predictions won't work outside of container
  • Is it possible to assign a specific node to create container with docker swarm?
  • Boot2Docker on Mac - Returns bsdthread_register error
  • Why does pushing to private, secured docker registry fail?
  • How to show the ID of the oldest running docker container?
  • how to run two web apps in the same localhost with same port in docker?
  • Authenticate Google Cloud service account on docker image
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.