O'Reilly logo

Orchestrating Docker by Shrikrishna Holla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring Docker's network settings

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.

    Note

    A DNS search server resolves abc to abc.example.com if 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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required