Skip to content

Commit 82e60f4

Browse files
authored
Update DiffBridgeVsOverlay.md
1 parent b1f299f commit 82e60f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate/DiffBridgeVsOverlay.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The bridge driver creates a private network internal to the host so containers o
77

88
Behind the scenes, the Docker Engine creates the necessary Linux bridges, internal interfaces, iptables rules, and host routes to make this connectivity possible. In the example highlighted below, a Docker bridge network is created and two containers are attached to it. With no extra configuration the Docker Engine does the necessary wiring, provides service discovery for the containers, and configures security rules to prevent communication to other networks. A built-in IPAM driver provides the container interfaces with private IP addresses from the subnet of the bridge network.
99

10-
![alt text](https://github.com/amitatha82/dockerlabs/blob/master/beginners/images/bridge.png)
10+
![alt text](https://raw.githubusercontent.com/amitatha82/dockerlabs/master/beginners/images/bridge.png)
1111

1212
The above application is now being served on our host at port 8000. The Docker bridge is allowing web to communicate with db by its container name. The bridge driver does the service discovery for us automatically because they are on the same network. All of the port mappings, security rules, and pipework between Linux bridges is handled for us by the networking driver as containers are scheduled and rescheduled across a cluster.
1313

0 commit comments

Comments
 (0)