Network and other
Docker hosts
Gateway
10.1.10.1 and
other containers
on the same
VLAN/subnet
Gateway
10.1.20.1 and
other containers
on the same
VLAN/subnet
Paretn: eth0.10
VLAN ID: 10
Paretn: eth0.20
VLAN ID: 20
Container(s)
Etho
10.1.10.0/24
Frontend
Container(s)
Etho
10.1.20.0/24
Backend
Gateway
10.1.30.1 and
other containers
on the same
VLAN/subnet
802.1Q Trunk - can be a single ethernet
link or multiple bonded ethernet links
Paretn: eth0.30
VLAN ID: 30
Container(s)
Etho
10.1.30.0/24
Credit cards
eth0 interface
Docker host: Frontend, backend, and credit card app tiers are isolated but can still
communicate inside parent interface or any other Docker hosts using the VLAN ID
Explanation
This image shows a network diagram of a Docker host with three containers: Frontend, Backend, and Credit cards. Each container is assigned to a different VLAN ID (10, 20, and 30 respectively) using parent interfaces eth0.10, eth0.20, and eth0.30. The containers can communicate inside the parent interface or any other Docker hosts using the VLAN ID. These VLANs connect to gateways that connect to other network and Docker hosts.