Skip to content

Instantly share code, notes, and snippets.

@ChrisSwanson
Created September 10, 2024 16:12
Show Gist options
  • Save ChrisSwanson/67463b522de4f4668ad8746498fff767 to your computer and use it in GitHub Desktop.
Save ChrisSwanson/67463b522de4f4668ad8746498fff767 to your computer and use it in GitHub Desktop.
all docker root directories
# 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