Using inspect command:
> docker inspect <container name|ID>
Searching for a particular section, using jq utility, for example docker volumes of the container:
> docker inspect container_name_or_id | jq -r '.[0]["Config"]["Volumes"]'
Searching for a particular section using --format, -f option:
> docker inspect -f '{{.Config.Volumes}}' container_name_or_id
Using the template:
> docker inspect \
--format "$(curl -s https://gist.githubusercontent.com/efrecon/8ce9c75d518b6eb863f667442d7bc679/raw/run.tpl)" \
name_or_id_of_running_container
> docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id
> docker exec -it running_container_name_or_id bash
Copy files from container to the host:
> docker cp <conainer name|ID>:<file path inside the conainer> <file path on the host>
List volumes:
> docker volume ls
Delete unused volumes:
> docker volume prune