Docker
/Intermediate
Bridge Network
Definition
The default network driver for Docker. It acts as a virtual software switch, allowing containers connected to the same bridge network to communicate, while providing isolation from containers not connected to it.
Explain Like I'm New
A private local router (like your home Wi-Fi) created solely for containers on a single computer. Devices on the Wi-Fi can talk to each other, but the outside world can't directly see them.
Real World Example
You run `docker network create my-net`. You attach a React frontend and a Node backend to `my-net`. The React app can now make API calls directly to `http://backend:3000` because the Bridge Network handles the internal DNS resolution.
Common Use Cases
- •Standalone containers
- •Local development
Interview Questions
basic
- Is the Bridge network used to connect containers running on different physical servers?
intermediate
- What is the main advantage of a 'User-Defined' bridge over the default `docker0` bridge?