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.
0 comments
Hide comments