Convert docker run commands into clean docker-compose.yml files or build essential Docker cleanup, log, and shell execution commands.
{{ parseError }}
Removes all stopped containers, unused networks, images, and volumes.
Stop and remove all running containers on host.
Removes volumes not referenced by any container — data loss if nothing else has a copy.
{{ composeOutput }}Recognized but not converted to YAML yet: {{ ignoredFlags.join(' ') }}. Their values (if any) were skipped correctly and won't corrupt the image or command.
Run this from the directory containing the saved file, before docker compose up. It parses and resolves the file exactly as Compose itself would and prints the normalized result, or the precise syntax error, without starting or building anything — the same "verify before you run it" step nginx -t/apache2ctl configtest serve for a web server config. This generator's own output is checked against a real docker compose config run as part of its test suite, not just against its own code.
This tool parses flags like -p, -v, -e, --name, and --restart from a docker run command into standard docker-compose.yml services. The first non-flag argument is always treated as the image; anything after it (e.g. alpine echo hello) becomes the container's command:, never part of the image name.
--network becomes network_mode (verified against a real docker compose up, not just the spec text, that this correctly attaches to a custom user-defined network, not only host/none); --memory/-m, --memory-reservation, --cpus and --cpuset-cpus become mem_limit/mem_reservation/cpus/cpuset; the --health-* flags and --no-healthcheck become a healthcheck: block. Every generated file is checked against a real docker compose config run as part of this tool's own test suite.
Everything is generated locally in your browser. Nothing you paste here is saved between visits — a docker run command's -e flags often carry real secrets, so copy or download the compose file before leaving the page rather than relying on this tab to remember it.