Why convert to Compose
docker run is great for a quick trial; Compose files are better for version control and team reproducibility. Many READMEs still ship only a docker run -d -p ... -v ... line, and hand-editing YAML often drops -e, networking, or quoting.
WoDeTool's Docker Run → Compose converter parses CLI flags in the browser and emits a services block — no Docker CLI required to preview the result.
Recommended steps
① Copy the full docker run (line continuations with \ are fine). ② Paste into the converter and verify image, ports, volumes, and environment. ③ Save as docker-compose.yml and run docker compose config locally for a final syntax check.
If the command includes passwords or tokens, rotate them after conversion and never commit real secrets to a public repo.
Common failures
Quoting: PowerShell and bash disagree on quotes — prefer a bash-style string when pasting. Short flags: keep -p, -v, and -e pairs intact. Multiple containers: one docker run maps to one service; convert separately and merge YAML for multi-service stacks.
After conversion, use JSON↔YAML or Text Diff on WoDeTool to sanity-check indentation and revisions.