Skip to content

Instantly share code, notes, and snippets.

@conclusionlogic
Last active February 19, 2020 19:08
Show Gist options
  • Save conclusionlogic/9532ae488cbadd9b503f9e833494c3c8 to your computer and use it in GitHub Desktop.
Save conclusionlogic/9532ae488cbadd9b503f9e833494c3c8 to your computer and use it in GitHub Desktop.
[list all docker-compose projects] lists all docker-compose projects with project name set #docker #docker-compose #bash #shell
$ docker ps --filter "label=com.docker.compose.project" -q | xargs docker inspect --format='{{index .Config.Labels "com.docker.compose.project"}}' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment