-
-
Save osallou/b98bb0a8669d099395fd4d735e524ccf to your computer and use it in GitHub Desktop.
Get docker volume mounts via `docker inspect`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(docker ps -aq) | |
do | |
echo -n "Volumes for ${i}: " | |
docker inspect --format '{{ range .Mounts }}{{ .Name }} {{ end }}' ${i} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment