14: Docker overlay networking
Overlay networks are at the center of most cloud-native microservices apps, and this chapter will get you up to speed on how they work in Docker.
I’ve divided the chapter into the following sections:
- Docker overlay networking – The TLDR
- Docker overlay networking history
- Building and testing overlay networks
- Overlay networks explained
Let’s do some networking magic!
Docker overlay networking – The TLDR
Real-world containers need a reliable and secure way to communicate without caring which host they’re running on or which networks those hosts are connected to. This is where overlay networks come into play — they create flat, secure, layer 2 networks that span multiple hosts. Containers on different hosts can connect ...
Get Docker Deep Dive - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.