Update README.md

adding a oneliner to print out all containers
This commit is contained in:
hgghyxo
2022-02-24 11:49:46 +01:00
committed by GitHub
parent 4e8ff192dc
commit ec211717ed

View File

@@ -43,3 +43,6 @@ Use the new image to generate a docker-compose file from a running container or
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose <container-name-or-id> <additional-names-or-ids>...
To print out all containers in a docker-compose format:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose $(docker ps -aq)