Recall & Review
beginner
What command shows all Docker networks on your system?
Use
docker network ls to list all Docker networks available on your system.Click to reveal answer
beginner
How do you inspect detailed information about a specific Docker network?
Use
docker network inspect <network_name_or_id> to see detailed info like connected containers and IP ranges.Click to reveal answer
intermediate
Which command helps you see the IP address of a running Docker container?
Run
docker inspect -f '{{ .NetworkSettings.Networks.<network>.IPAddress }}' <container_name_or_id> to get the container's IP address.Click to reveal answer
intermediate
How can you test network connectivity between Docker containers?
You can use
docker exec <container> ping <other_container_ip_or_name> to check if one container can reach another.Click to reveal answer
intermediate
What is the purpose of the
docker network disconnect command?It disconnects a container from a Docker network, useful for isolating containers during debugging.
Click to reveal answer
Which command lists all Docker networks?
✗ Incorrect
docker network ls lists all networks. The others create, inspect, or connect networks.
How do you find the IP address of a running container?
✗ Incorrect
Use docker inspect with a format option to get the container's IP address.
What command helps you check if one container can reach another?
✗ Incorrect
Using ping inside a container tests network connectivity to another container.
Which command disconnects a container from a network?
✗ Incorrect
docker network disconnect removes a container from a network.
What does
docker network inspect show?✗ Incorrect
This command shows detailed network info like connected containers and IP ranges.
Explain how to inspect and find the IP address of a Docker container.
Think about how to get detailed info about a container's network settings.
You got /3 concepts.
Describe steps to test network connectivity between two Docker containers.
Imagine you want to check if one friend can call another using their phone number.
You got /3 concepts.