$ sudo vi /etc/sysconfig/docker
Updating DNS nameservers for Docker containers (optional)
On Red Hat servers, to set DNS nameservers for containers for offline use (for example, 0.0.0.0), or to use specific DNS nameservers for containers (private customer DNS server IP addresses), edit the docker file.
The default setting is commented out (for example, #DOCKER_OPTS=""
). In this case, the containers automatically update using the host network interface setting for the DNS namesservers (for example, 8.8.8.8 8.8.4.4
).
If the Blue Planet server network interface file is set up with DNS nameservers but is not connected to the network, the Blue Planet solution_manager container, or other Blue Planet containers, you might experience network timeouts trying to resolve DNS nameservers. Set the /etc/sysconfig/docker
to DOCKER_OPTS=" --dns 0.0.0.0"
. This sets all Blue Planet containers to use nameserver 0.0.0.0
and prevents DNS nameserver lookup timeouts.