Another recently encountered problem: how to make Docker container DNS work when the configured DNS server is blocked.
The answer is simple:
/etc/docker/daemon.json contains the docker daemon configuration, and you can specify additional defaults. In this case, I added my local DNS server first, followed by the Google public DNS server (which I prefer not to use generally, but am OK with a docker container using).
"dns": ["192.168.1.1", "22.214.171.124"]
I wonder if there's a market for a docker image with a basic caching resolver like dnscache already configured? It's small, efficient, and removes the need for overriding configurations like this.
This entry was published Fri Jun 21 17:45:00 CDT 2019 by Matthew
and last updated 2019-06-21 17:45:00.0.
Note: Comments are currently moderated and will not appear immediately.