bridge network
The default Docker network type: a private network inside the host that containers join, with its own private addresses.
In more detail
Each container on a bridge gets a private IP address the outside world cannot reach directly; traffic in comes through port publishing. The built-in default bridge (docker0) does not resolve container names, so create your own bridge network, where Docker DNS lets containers find each other by name.
Related terms
- Docker network — A virtual network Docker creates so containers can talk to each other and, if allowed, to the outside world.
- IP address — The numeric address, such as 192.168.1.10, that identifies a machine or container on a network.
- port publishing — Forwarding a port on the host to a port inside a container so the service can be reached from outside.
- DNS — The system that turns names such as learnsome.tech into IP addresses.
Taught in
- Run The Spine Service And Publish Its Port — Docker Architecture & Production Containers
- Bridge Networks, DNS And Container Communication — Docker Architecture & Production Containers
- Define The Service And Database With Compose — Docker Architecture & Production Containers