Docker networking modes¶
Docker offers several networking drivers to manage how containers communicate with each other and the outside world^[400-devops-06-kubernetes-k8s-paas-01docker.md].
Networking Modes¶
Docker primarily supports four network types, which should be selected based on specific business requirements^[400-devops-06-kubernetes-k8s-paas-01docker.md]:
- Bridge (NAT): The default network mode^[400-devops-06-kubernetes-k8s-paas-01docker.md]. In this mode, the container is connected to a private internal network on the host, usually utilizing Network Address Translation (NAT) to communicate externally^[400-devops-06-kubernetes-k8s-paas-01docker.md].
- None (Close): A closed environment where no network is configured for the container^[400-devops-06-kubernetes-k8s-paas-01docker.md]. This provides complete network isolation.
- Host (Open): An open mode where the container shares the host's network namespace^[400-devops-06-kubernetes-k8s-paas-01docker.md]. This removes isolation between the container and the host's networking stack.
- Container (Join): A mode that allows a new container to join the network namespace of an existing container^[400-devops-06-kubernetes-k8s-paas-01docker.md]. This enables containers to effectively share the same network interface and IP address.
Related Concepts¶
- [[Docker]]
Sources¶
^[400-devops-06-kubernetes-k8s-paas-01docker.md]