CmdID / docker / docker compose / docker compose alpha
docker compose alpha generate
EXPERIMENTAL - Generate a Compose file from existing containers Docker Compose reference
4 options Its page in the Docker Compose reference
Options
--dry-runExecute command in dry run mode--formatFormat the output.--nameProject name to set in the Compose file--project-dirDirectory to use for the project