Docker Network
Question
What does a Docker network do?
Hint
Networks let containers talk to each other by name.
Explanation
Docker networks enable communication between containers. Default networks: bridge (default, containers communicate by IP), host (no isolation, uses host network), none (no networking). Custom bridge networks allow containers to communicate by name (DNS resolution). Create: docker network create mynet. Connect: docker run --network mynet. In custom networks, containers resolve each other by container name. Useful for multi-container apps. Docker Compose creates a default network for all services. For production, use overlay networks (multi-host).
Related Resources
Related Lessons
- Docker Containers
Learn containers.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.