While doing debugging, automation, and so on, we will need the container's configuration details. Docker provides the container inspect command to get those easily.
Reading a container's metadata
Getting ready
Ensure that the Docker daemon is running on the host and can be connected through the Docker client.
How to do it...
To inspect a container, run the following command:
$ docker container inspect [OPTIONS] CONTAINER [CONTAINER...]
We'll start a container and then inspect it, like so:
$ ID=$(docker container run -d -i ubuntu /bin/bash) $...