
Setting DNS for containers in a docker environment
Setting DNS for all containers in a docker environment I have noticed that all my containers default to 8.8.8.8 google dns because they are unable to connect to the DNS servers configured for my network. I have been using a dirty hack to set my own DNS servers. I knew this wasn’t the correct way to do it. i.e making a resolv.conf in the docker directory and mounting it at /etc/resolv....