Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.76k stars 197 forks source link

Export all contrainers at once? #71

Closed bazmattaz closed 6 months ago

bazmattaz commented 6 months ago

Is there or could there be a way to export the docker compose for all containers without having to name each one?

Red5d commented 6 months ago

Yes, you can use this command to export all containers:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose $(docker ps -aq)