Last active
January 31, 2018 12:58
-
-
Save jlelse/b3f667cdf6e7aff62cddb2b551bfdd20 to your computer and use it in GitHub Desktop.
Get auto generated docker compose file for all running containers
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This command generates a
autocompose.txt
file.