> Markdown version of [/videos/1418-docker-network-without-docker](https://www.wearedevelopers.com/videos/1418-docker-network-without-docker). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Docker network without Docker Mastering Linux kernel primitives gives you total control over container networks. Strip away the Docker daemon to manually route traffic, boost performance, and remap ports without restarts. - **Speakers:** [Oliver Seitz](https://www.wearedevelopers.com/@oliver-seitz) - **Event:** World Congress 2025 - **Published:** August 20, 2025 - **Duration:** 28:26 - **URL:** https://www.wearedevelopers.com/videos/1418-docker-network-without-docker ## Summary Docker's networking capabilities often feel opaque, but they are fundamentally built on standard Linux kernel primitives. By stripping away the Docker daemon and CLI, developers can achieve a deeper understanding of container connectivity through manually configuring network namespaces and routing. While network namespaces provide strict process isolation and cgroups restrict resource usage, establishing communication requires deliberately breaking this isolation using low-level Linux networking tools. The foundation of this container communication relies on virtual ethernet pairs (veth), which function as direct digital wires connecting an isolated namespace back to the underlying host system. Because scaling direct one-to-one veth connections between multiple containers quickly becomes unmanageable, network bridges step in to act as virtual switches. By attaching multiple container veth interfaces to a designated Linux bridge, engineers can enable seamless intra-network traffic, perfectly mirroring the automated behavior of standard local Docker networks. Maintaining security and proper routing between distinct virtual networks requires precise control over `iptables`. Docker enforces strict network isolation by manipulating the forward chain, utilizing explicit drop policies to block unauthorized cross-bridge packets while explicitly permitting outbound internet access. Furthermore, container port forwarding functions entirely through destination network address translation (DNAT) rules rather than magic. By directly modifying the NAT table to rewrite localhost requests to a container's internal IP, developers can entirely bypass Docker's default userland proxy to potentially improve input/output performance, and even map new ports to fully running containers without requiring a restart. **Keywords:** docker networking internals, linux network namespaces, virtual ethernet interfaces, linux network bridges, container network isolation, iptables traffic routing, network address translation, manual port forwarding, inter-bridge traffic blocking, docker userland proxy, destination ip rewriting, linux kernel networking ## Chapters 1. **Fundamentals of container network isolation and system components** (00:05) — How Linux namespaces and control groups restrict process access before introducing network communication pathways. 1. **Connecting namespaces with local virtual ethernet pairs** (02:56) — Constructing direct network pathways between isolated Linux namespaces using virtual ethernet interfaces. 1. **Connecting multiple container namespaces using virtual network bridges** (07:49) — Implementing network bridges to efficiently switch traffic between multiple container virtual interfaces without direct point-to-point links. 1. **Managing container packet flow with Linux kernel iptables** (12:33) — How network address translation and routing rules determine packet destinations and control layer access. 1. **Bypassing the Docker userland proxy for kernel networking** (15:47) — Disabling the default userspace proxy process allows local network traffic to route purely through kernel level packet chains. 1. **Inspecting default bridge architectures and custom Docker networks** (17:07) — Demonstrating how tooling sets up distinct isolated bridge networks to prevent default container cross-communication. 1. **Dissecting iptables rules preventing internal inter-bridge communication** (19:15) — Analyzing the specific packet filtering policies implemented to drop traffic attempting to cross isolated bridge networks. 1. **Manual port forwarding configuration using network address translation** (23:23) — Configuring kernel destination NAT rules to manually forward host ports into a running container without external tooling. ## Related Moments - [Abstracting container communication utilizing robust overlay networks](https://www.wearedevelopers.com/videos/412-kubernetes-security-challenge-and-opportunity) (from "Kubernetes Security - Challenge and Opportunity") - [Orchestrating with Kubernetes against Docker and accessing slides](https://www.wearedevelopers.com/videos/487-debug-a-kubernetes-operator) (from "Debug a Kubernetes Operator") - [High-level infrastructure topologies and isolation boundaries](https://www.wearedevelopers.com/videos/1226-net-microservices-in-azure-container-apps) (from ".NET Microservices in Azure Container Apps") - [Injecting network messages directly from compromised container environments](https://www.wearedevelopers.com/videos/1119-a-hitchhikers-guide-to-container-security-automotive-edition-2024) (from "A Hitchhikers Guide to Container Security - Automotive Edition 2024") - [Configuring Docker images, networking protocols, and persistent storage volumes](https://www.wearedevelopers.com/videos/984-rust-and-docker-let-s-build-an-ai-powered-app) (from "Rust and Docker: Let's build an AI-powered app!") - [Isolating pod communication with strict network policies](https://www.wearedevelopers.com/videos/1411-kubernetes-security-best-practices) (from "Kubernetes Security Best Practices") ## Related Articles - [Building AI Solutions with Rust and Docker](https://www.wearedevelopers.com/magazine/494-building-ai-solutions-with-rust-and-docker) - [Dev Digest 138 - Are you secure about this?](https://www.wearedevelopers.com/magazine/486-dev-digest-138-are-you-secure-about-this) - [Walking Into The Era of Supply Chain Risks](https://www.wearedevelopers.com/magazine/106-walking-into-the-era-of-supply-chain-risks) - [Stephan Gillich - Bringing AI Everywhere](https://www.wearedevelopers.com/magazine/489-stephan-gillich-bringing-ai-everywhere) ## Related Jobs - [Network Automation Engineer](https://www.wearedevelopers.com/jobs/48187-network-automation-engineer) at **Burda** - [IT System Administrator](https://www.wearedevelopers.com/jobs/48290-it-system-administrator) at **Sensory-Minds GmbH** - [Devops Engineer](https://www.wearedevelopers.com/jobs/ext/1940926-devops-engineer) at **Bitpanda** - [Lead Cloud DevSecOps Engineer - Kubernetes](https://www.wearedevelopers.com/jobs/ext/1659167-lead-cloud-devsecops-engineer-kubernetes) at **BWI GmbH** - [Endpoint Security Engineer - OT](https://www.wearedevelopers.com/jobs/ext/1306782-endpoint-security-engineer-ot) at **ZEISS Group** - [Senior Netzwerk Administrator - WAN](https://www.wearedevelopers.com/jobs/ext/121705-senior-netzwerk-administrator-wan) at **BWI GmbH**