Challenge - 5 Problems
Docker Network Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Docker bridge network
Which statement best describes the Docker bridge network driver?
Attempts:
2 left
💡 Hint
Think about a private network inside the host for containers.
✗ Incorrect
The bridge driver creates a private network internal to the host. Containers on this network can talk to each other but are isolated from the host network unless ports are published.
💻 Command Output
intermediate2:00remaining
Output of docker network inspect for host driver
What is the key difference in the output of
docker network inspect host compared to a bridge network?Docker
docker network inspect hostAttempts:
2 left
💡 Hint
Host network means no separate network namespace for containers.
✗ Incorrect
The host network driver makes containers use the host's network stack directly, so no separate IP or subnet is assigned.
🔀 Workflow
advanced3:00remaining
Setting up multi-host communication with overlay network
Which sequence of commands correctly sets up an overlay network for containers across multiple Docker hosts?
Attempts:
2 left
💡 Hint
Initialize swarm before creating overlay network and joining nodes.
✗ Incorrect
First, initialize swarm on manager (1), then create overlay network (2), join worker nodes (3), and finally deploy service on overlay (4).
❓ Troubleshoot
advanced2:00remaining
Diagnosing container network isolation with none driver
A container started with
--network none cannot access the internet or other containers. What is the reason?Attempts:
2 left
💡 Hint
None means no network at all.
✗ Incorrect
The none network driver disables networking completely, so the container has no network interfaces and cannot communicate.
✅ Best Practice
expert3:00remaining
Choosing the right network driver for a secure web app
You want to deploy a web app container that must be isolated from other containers but accessible from the host on port 8080. Which network driver and configuration is best?
Attempts:
2 left
💡 Hint
Isolate containers but allow host access on a port.
✗ Incorrect
The bridge network isolates containers by default. Publishing port 8080 allows host access without exposing containers to each other.