Different Types of Docker Networks
Table of contents
Docker Network Definitions
| Traditional | Docker | Explanation |
|---|---|---|
| NAT | bridge | Host machine creates a bridge (docker0) and performs NAT on this interface, each container created is a member of the bridge |
| ??? | host | Uses the host's network stack directly, container uses the host's IP and ports directly |
| VLAN | ipvlan | Routes packets based on VLAN ID in the ethernet frame |
| MACVLAN | macvlan | Creates virtual interfaces from the host interface `ip link add mymacvlan1 link enp4s0 type macvlan mode bridge` |