I have a little question about DNS resolution inside a container:
My docker on Ubuntu is working normaly and it can resolve nameserver inside my domain but all the containers installed inside this docker aren’t able to solve.
I already made a research about it and i can add a DNS server with docker run for example:
docker run -d -p 9090:80 -p 5666:5666 -p 5667:5667 –dns 10.200.100.100 --restart always --name nagiosxi tgoetheyn/docker-nagiosxi
But i don’t wan’t remove this container to make another docker setting this comand. It’s possible to add this command –dns 10.200.100.100 inside this running container without losing any data?
I can insert the dns resolution inside /etc/hosts file but if this host just restart i lose all the data saved inside the file.