Created
September 10, 2024 16:12
-
-
Save ChrisSwanson/67463b522de4f4668ad8746498fff767 to your computer and use it in GitHub Desktop.
all docker root directories
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
| # bash one liner for listing all root directories where containers are being run from | |
| docker ps | awk '{ print $1 }' | tail -n +2 | xargs -n1 docker container inspect $container | jq -r '.[].Config.Labels."com.docker.compose.project.config_files"' | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment