Introduction
Sometimes you need to see all the details about a running or stopped Docker container or image. Docker inspect shows you this detailed information in a structured way so you can understand how your container or image is configured and running.
When you want to check the IP address or network settings of a running container
When you need to see the exact command a container was started with
When you want to find the mount points or volumes used by a container
When you want to debug why a container is not working by checking its configuration
When you want to see metadata like environment variables or exposed ports of an image