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-compose v2 expose port to machine
  • Is there a simple way to configure Docker Private Registry 2.0 with LDAP?
  • How do I delete a docker image from docker hub via command line?
  • Docker ASP.net 5 beta4 kestrel doesn't keep container running
  • Dockerized emacs not loading extensions
  • Docker flask uwsgi 404 on a remote host
  • docker php mongodb passing links to mongodb connection
  • Docker: Why does my home directory disappear after the build?
  • Logging in Docker
  • Can't pull image from docker repo
  • Can you control Docker run parameters in Dockerfile
  • Unable to connect to the secure docker port using curl
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.