Quickly learn How to get a Docker container's mounts with WhaleDeck Shorts. Clear, step-by-step guides for Docker.
The answer is quite simple. The following command shows how to get the mounts of the Docker container my_container.
docker container inspect --format '{{range .Mounts}}{{printf "%s => %s \n" .Source .Destination}}{{end}}' my_container