taiwannsa.blogg.se

Docker network tutorial
Docker network tutorial







docker network tutorial

Say you have several services, running in containers, on a machine with several IP addresses. The use case of this setup is pretty straight forward. In this post, I’m going to take you through setting up Docker to work with IPv4 and IPv6, using isolated networks, so all incoming and outgoing traffic are restricted to specific IP addresses. If you’re attempting to use Docker with IPv6, you’re in for a world of very counterintuitive configuration.

docker network tutorial

But what if you just have a single Docker daemon and multiple IPs assigned to a single server? How do you bind individual containers to specific public IP addresses? It’s fairly straight forward to bind a service running in a container to a specific IP listening address, but getting outgoing traffic to egress via a specific IP address takes additional work. Fancy Docker orchestration systems, like Kubernetes or DC/OS, have networking layers that can be setup for complicated ingress and load balancer configurations.









Docker network tutorial