Docker Networking
Docker Networking - How packets flow from Internet → Host NIC (eth0) → Docker bridge/veth → Container application.
1️⃣ Linux Network Flow (Foundation)
Internet → Router → Host Network → NIC (eth0) → Kernel → Application
Explanation:
2️⃣ What is a Bridge (docker0)
Flow: Internet → eth0 → docker0 (bridge) → container1
└──→ container2
Definition: A bridge is a virtual switch inside the host that connects multiple containers.
Key Points:
3️⃣ What is Host Network
Flow: Internet → eth0 → Container (directly, no bridge)
Definition: Container shares the host’s network stack and NIC directly.
Key Points:
Recommended by LinkedIn
4️⃣ What is None Network
Definition: Container runs with zero network access.
Key Points:
5️⃣ What is Custom Bridge Network
Flow: Internet → eth0 → custom-bridge (user-defined) → containerA
└──→ containerB
Definition: A user-created Linux bridge network managed by Docker instead of the default docker0.
Key Points:
6️⃣ What is Overlay Network (Multi-Host)
Flow: Internet → Node NIC (eth0) → Overlay Network (VXLAN tunnel) → Container on another host
Definition: A virtual network that connects containers across multiple Docker hosts.
Key Points:
Keep up the good work