I find that the examples in the docker inspect documentation seem magic, but do not explain much.
Docker inspect is important because it is the clean way to extract information from a running container
docker inspect -f ... container_id
(or all running container)
docker inspect -f ... $(docker p...