Recall & Review
beginner
What command shows detailed network settings of a running Docker container?
Use
docker inspect <container_id_or_name> to see detailed information including network settings.Click to reveal answer
beginner
What key in the
docker inspect output contains network information?The
NetworkSettings key holds IP address, gateway, ports, and network mode details.Click to reveal answer
beginner
How can you find the IP address of a Docker container?
Look under
NetworkSettings.Networks[<network_name>].IPAddress in the docker inspect output.Click to reveal answer
beginner
What does the
docker network ls command do?It lists all Docker networks available on your system.
Click to reveal answer
intermediate
How do you inspect a specific Docker network's details?
Use
docker network inspect <network_name> to see connected containers and settings.Click to reveal answer
Which command shows the IP address of a Docker container?
✗ Incorrect
The
docker inspect command shows detailed info including the IP address.Where in the inspect output can you find port mappings?
✗ Incorrect
Port mappings are listed under
NetworkSettings.Ports.What does
docker network ls display?✗ Incorrect
It lists all Docker networks on the system.
How to see which containers are connected to a Docker network?
✗ Incorrect
Inspecting a network shows connected containers.
Which key in
docker inspect output shows the network mode?✗ Incorrect
Network mode is under
HostConfig.NetworkMode.Explain how to find the IP address and port mappings of a Docker container.
Think about the detailed info shown by docker inspect.
You got /3 concepts.
Describe how to list Docker networks and inspect a specific network's connected containers.
Focus on Docker network commands.
You got /3 concepts.