runlike icon indicating copy to clipboard operation
runlike copied to clipboard

docker-compose

Open edasque opened this issue 5 years ago • 5 comments

Have you thought about generating a docker-compose file as well? While they typically combine a few services, a fragment would work well.

edasque avatar Jul 25 '18 18:07 edasque

What would you use that for? The purpose of this script as I originally envisioned it is to let you run ad-hoc containers that were launched with lots of switches. What's the use-case that you have in mind for adding support for docker-compose output format?

lavie avatar Aug 01 '18 04:08 lavie

Generating docker-compose.yml is useful for taking snapshots of a running set of containers. It would be a useful dev-ops tool.

hellodanylo avatar Nov 13 '18 06:11 hellodanylo

It would be an interesting challenge to try to implement this. docker-compose is so much more than just containers, though. It's networks, volumes, etc. practically the entire docker engine API would have to be employed.

lavie avatar Aug 10 '21 13:08 lavie

This is the exact use case I've found myself with today. I have a host running 39ish containers that were created using a mix of compose, run commands, and portainer, that all need to be recreated on a different host while I rebuild the first one.

Cassock avatar Mar 21 '22 19:03 Cassock