

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Offline
incomplete
2: Break the Network
incomplete
3: Load Balancers
incomplete
4: Application Servers
incomplete
5: Custom Network
incomplete
6: Configuring the Load Balancer
incomplete
This lesson's interactive features are locked, please to keep using them
We've already done a bit of networking in Docker. Specifically, we've exposed containers to the host network on various ports and accessed web traffic.
Now, let's force a container into offline mode!
You might be thinking, "why would I want to turn off networking?!?" Well, usually it's for security reasons. You might want to remove the network connection from a container in one of these scenarios:
The docker run command has a --network none flag that makes it so that the container can't network with the outside world, which is super useful for isolating containers.