Challenge - 5 Problems
Bridge Network Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Output of creating a custom bridge network
What is the output when you run the command to create a custom bridge network named
my_bridge?Docker
docker network create --driver bridge my_bridgeAttempts:
2 left
💡 Hint
The command returns a network ID which is a long hexadecimal string.
✗ Incorrect
When you create a custom bridge network, Docker returns the network ID, which is a 64-character hexadecimal string. The output confirms successful creation.
🧠 Conceptual
intermediate1:30remaining
Purpose of custom bridge networks
Why would you create a custom bridge network instead of using the default bridge network in Docker?
Attempts:
2 left
💡 Hint
Think about network isolation and container communication control.
✗ Incorrect
Custom bridge networks allow you to isolate containers and control how they communicate, unlike the default bridge network which is shared by all containers.
❓ Configuration
advanced2:00remaining
Correct Docker network create command with subnet
Which command correctly creates a custom bridge network named
custom_net with subnet 192.168.100.0/24?Attempts:
2 left
💡 Hint
The subnet option uses an equals sign and comes after the driver option.
✗ Incorrect
The correct syntax requires the --subnet option with an equals sign and the network name last. Option A follows the correct order and syntax.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting network creation failure
You run
docker network create --driver bridge --subnet=192.168.1.0/24 mynet but get the error: Error response from daemon: Pool overlaps with other one on this address space. What is the most likely cause?Attempts:
2 left
💡 Hint
The error mentions overlapping address space.
✗ Incorrect
Docker prevents creating networks with overlapping subnets to avoid IP conflicts. The error means the subnet is already in use by another network.
🔀 Workflow
expert3:00remaining
Order of commands to create and use a custom bridge network
Put these steps in the correct order to create a custom bridge network and run a container attached to it:
Attempts:
2 left
💡 Hint
You must create the network before running containers on it.
✗ Incorrect
First create the network (2), then list networks to confirm (3), inspect details (4), and finally run the container attached to it (1).