Last active
January 2, 2019 15:12
-
-
Save Geekfish/8f13ab14acb17eceb137e76075de0eda to your computer and use it in GitHub Desktop.
Inspect mounted volumes in docker containers
This file contains hidden or 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
docker ps -q | xargs -I '{}' docker inspect {} | jq '.[] | {container_id: .Id, image: .Config.Image, mounts: .Mounts}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results in something like:
for all active containers.
Amend the
docker ps
part for inspecting different sets of containers