Docker Networks (EN)
ConceptIsolated networks for communication between containers
Architecture
Docker Networks are isolated networks that enable communication between containers while enhancing security. They allow containers to communicate with each other without being directly connected to the host network or the internet. Docker Networks can be custom-configured to meet specific requirements for isolation, security, and performance, and are an essential component of container orchestration.
Network Types
flowchart TD A[Docker Networks] --> B[bridge] A --> C[host] A --> D[none] A --> E[overlay] A --> F[macvlan] A --> G[ipvlan] B --> B1[Standard network
Containers communicate via NAT] C --> C1[Container shares host network
No isolation] D --> D1[No network
Container is isolated] E --> E1[Multi-host network
For Swarm mode] F --> F1[Container with own MAC
Similar to physical devices] G --> G1[IP-based virtualization
Multiple IPs on interface]
In Context
- Typically used together with Docker Compose and Docker Swarm
- Related to: Docker Container, Docker Volumes, Kubernetes Networking
- Example use: Microservices architectures with isolated services