Skip to content

Instantly share code, notes, and snippets.

@jlelse
Last active January 31, 2018 12:58
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 jlelse/b3f667cdf6e7aff62cddb2b551bfdd20 to your computer and use it in GitHub Desktop.
Save jlelse/b3f667cdf6e7aff62cddb2b551bfdd20 to your computer and use it in GitHub Desktop.
Get auto generated docker compose file for all running containers
for containerid in `docker ps --format "{{.Names}}"` ; do docker run --rm -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose $containerid >> autocompose.txt ; done
@jlelse
Copy link
Author

jlelse commented Jan 31, 2018

This command generates a autocompose.txt file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment