Setup your own local overlay network from scratch!

Want to know how Docker containers work? We’re gonna find out! Today we’re going to simulate container networking. We’ll do this with magic of Linux namespaces, virtual ethernet devices, bridge devices, and iptables. Note You’ll need root access to be able to run given commands. First, we’ll create two network namespace for containers container-1 and container-2 named c1 and c2. This command will create two seperate namespaces which have their own interfaces and routing tables:...

April 10, 2024 · 7 min · 1347 words · Saber Shahhoseini