Challenge - 5 Problems
Network Debugging Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Inspect Docker container network details
You run the command
docker network inspect bridge. What key information does this command provide about the Docker bridge network?Attempts:
2 left
💡 Hint
Think about what 'inspect' means in Docker networking context.
✗ Incorrect
The docker network inspect command shows detailed information about a specific network, including connected containers and their IP addresses.
💻 Command Output
intermediate2:00remaining
Diagnose container connectivity with ping
You have two containers on the same user-defined Docker network. You run
docker exec container1 ping -c 3 container2. What output do you expect if the network is correctly configured?Attempts:
2 left
💡 Hint
Successful ping means packets reach the target container.
✗ Incorrect
If containers are on the same network and reachable, ping will show all packets received with no loss.
❓ Troubleshoot
advanced2:30remaining
Troubleshoot Docker container cannot reach external internet
A container cannot access the internet, but other containers on the same host can. Which Docker network setting is most likely causing this?
Attempts:
2 left
💡 Hint
Check network isolation and DNS configuration.
✗ Incorrect
User-defined bridge networks require proper DNS and gateway settings for internet access. Missing these can block external connectivity.
✅ Best Practice
advanced2:30remaining
Best practice for inspecting live network traffic of a container
You want to capture and analyze live network traffic inside a running Docker container. Which approach is best?
Attempts:
2 left
💡 Hint
Think about capturing traffic without restarting or rebuilding.
✗ Incorrect
Running tcpdump inside the container via docker exec allows live capture without downtime.
🔀 Workflow
expert3:00remaining
Order the steps to debug a Docker container network issue
Arrange these steps in the correct order to debug why a Docker container cannot connect to another container on the same network.
Attempts:
2 left
💡 Hint
Start with network configuration, then test connectivity, then check host settings, then logs.
✗ Incorrect
First confirm network setup, then test connectivity, then check host firewall, finally check logs for app errors.