How it works
Supports --name, -p, -v, -e, --restart, --network, -w, the image and any trailing command. Flags it does not recognise are skipped, so review the result.
Frequently asked questions
Where do I use the output?
Save it as docker-compose.yml and run docker compose up -d.