0
0
Dockerdevops~5 mins

Inspecting container network settings in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Adocker logs &lt;container&gt;
Bdocker inspect &lt;container&gt;
Cdocker run
Ddocker ps
Where in the inspect output can you find port mappings?
ANetworkSettings.Ports
BConfig.Env
CMounts
DState.Status
What does docker network ls display?
AList of running containers
BList of volumes
CList of images
DList of Docker networks
How to see which containers are connected to a Docker network?
Adocker network inspect &lt;network&gt;
Bdocker ps
Cdocker container ls
Ddocker volume ls
Which key in docker inspect output shows the network mode?
AState.Running
BConfig.Cmd
CHostConfig.NetworkMode
DMounts
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.