Skip to content

Instantly share code, notes, and snippets.

@jlelse jlelse/autocompose.sh
Last active Jan 31, 2018

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.