November 2017
Intermediate to advanced
298 pages
7h 10m
English
Speaking of DNS, we should probably talk a bit about Docker DNS handling. By default, Docker Engine uses the DNS settings from the host, but in some advanced deployment settings where the network that the cluster is being deployed in is within an already built-out network, there may be times when the engine or the container needs to be configured with a custom DNS setting or the DNS search prefix (also know as the domain name). In such cases, you are able to override the default DNS settings of the Docker Engine easily by adding the dns and/or dns-search parameters to /etc/docker/daemon.json and restarting the daemon. Both parameters allow multiple values and are pretty self-explanatory:
{ ... "dns": ["1.2.3.4", "5.6.7.8", ...Read now
Unlock full access