Docker · 12-day planAll days
Day 10 of 12 30 minBridgeDNSMulti-container
Connect containers to each other. See why the default network can't find containers by name, create your own network where Docker's built-in DNS works, run a web app and its Redis database side by side, and inspect, connect and disconnect networks.
By the end of today you can
- Explain how containers on the default bridge network communicate
- Create a user-defined network and reach containers by name
- Run a two-container app (web + Redis) by hand
- Tell published ports (for you) from container ports (for other containers)
- Inspect, connect and disconnect networks
What's inside
- 4 sections
- 2 diagrams and mind maps
- 5 code examples you can run
- 5-question quiz
- 1The default network
- 2Your own network: names work
- 3A two-container app by hand
- 4Managing networks
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free