0
0
Dockerdevops~20 mins

Network drivers (bridge, host, overlay, none) in Docker - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Docker Network Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Docker bridge network
Which statement best describes the Docker bridge network driver?
AIt disables all networking for the container, isolating it completely.
BIt connects containers directly to the host's network stack, sharing the host IP address.
CIt creates a private internal network on the host where containers can communicate, isolated from the host network.
DIt allows containers to communicate across multiple Docker hosts using an overlay network.
Attempts:
2 left
💡 Hint
Think about a private network inside the host for containers.
💻 Command Output
intermediate
2: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 host
AThe output shows an overlay network with multiple nodes connected.
BThe output lists multiple IP addresses assigned to containers on a private subnet.
CThe output indicates the network is disabled with no interfaces.
DThe output shows containers share the host's network namespace with no IP address assigned to the network.
Attempts:
2 left
💡 Hint
Host network means no separate network namespace for containers.
🔀 Workflow
advanced
3: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?
A3,1,2,4
B1,2,3,4
C2,1,3,4
D1,3,2,4
Attempts:
2 left
💡 Hint
Initialize swarm before creating overlay network and joining nodes.
Troubleshoot
advanced
2: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?
AThe none driver disables all networking, so the container has no network interfaces.
BThe container is connected to a private bridge network with no internet access.
CThe container shares the host network but firewall blocks traffic.
DThe overlay network is misconfigured causing isolation.
Attempts:
2 left
💡 Hint
None means no network at all.
Best Practice
expert
3: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?
AUse bridge network and publish port 8080 to host, isolating containers but allowing host access.
BUse host network to share host IP and ports directly for best performance.
CUse none network and manually configure port forwarding on host.
DUse overlay network without publishing ports for container isolation.
Attempts:
2 left
💡 Hint
Isolate containers but allow host access on a port.