Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.85k stars 204 forks source link

(Feature Request) Add option to generate compose file from all containers at once #16

Closed cobaltgit closed 3 years ago

cobaltgit commented 3 years ago

I'm looking for a feature where you can generate one compose file from all your containers running at once, or would the following work?

docker ps -aq | xargs sudo python autocompose.py
Red5d commented 3 years ago

Yep, that should work. Generating an all-in-one compose file from multiple containers is already a feature. You can pipe the container names/ids in like that or list the ones you want directly like:

sudo python autocompose.py container1 container2 container3
cobaltgit commented 3 years ago

Ah, that's good then. Thanks!