Understand the default type of networking with containers on Windows Server 2016

Understand the default type of networking with containers on Windows Server 2016

Q. What type of network is enabled by default when containers is installed?

A. The default networking is NAT which can be seen by running the following Docker commands:

docker network ls
docker network inspect nat

The use of NAT enables the container to access the external network and also publish services through the container hosts IP (-p <host port>:<container port>). An internal Hyper-V switch is automatically created on the host to enable the NAT connectivity.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish