Skip to content

Instantly share code, notes, and snippets.

@agc93
Created March 20, 2017 00:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agc93/fb0ddd6f3d06cf7e55d4a108749b0724 to your computer and use it in GitHub Desktop.
Save agc93/fb0ddd6f3d06cf7e55d4a108749b0724 to your computer and use it in GitHub Desktop.
Matching Docker volumes to containers
#!/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