Storage and networking, topic 16 of 41
Networks
Each container gets its own network namespace. By default it joins the bridge network, where it can reach the internet. On a user-defined bridge network, created with docker network create, containers also find each other by name through Docker's built-in DNS: an app reaches its database at db:5432.
Know the other drivers: host, which shares the host's network, none, which has none, and overlay, which spans several hosts in a Swarm.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- Networking overviewOfficial
- Bridge network driverOfficial