Skip to content

Instantly share code, notes, and snippets.

@gzagatti
Created July 18, 2018 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gzagatti/6923d2cdb23d83ace9b2f63339c30ee9 to your computer and use it in GitHub Desktop.
Save gzagatti/6923d2cdb23d83ace9b2f63339c30ee9 to your computer and use it in GitHub Desktop.
Figure out Docker container mounts using JQ
docker inspect container | jq -r '..|.Mounts? |select(.!=null) | map(.Source)[]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment