Docker creates a separate network stack for each container and a virtual bridge (
docker0) to manage network communication within the container, between the container and the host, and between two containers.
There are a few network configurations that can be set as arguments to the
docker run command. They are as follows:
--dns: A DNS server is what resolves a URL, such as http://www.docker.io, to the IP address of the server that is running the website.
--dns-search: This allows you to set DNS search servers.
A DNS search server resolves
example.com is set as the DNS search domain. This is useful if you have a lot of subdomains in your corporate website that you need to access frequently. ...