Created
March 20, 2017 00:32
-
-
Save agc93/fb0ddd6f3d06cf7e55d4a108749b0724 to your computer and use it in GitHub Desktop.
Matching Docker volumes to containers
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
#!/usr/bin/env bash | |
for i in $(docker ps -q);do | |
echo "Container $i" | |
docker inspect -f '{{ json .Mounts }}' $i | python -m json.tool | |
echo "-------------------" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment