Docker Run to Compose
Parse a docker run command and generate modern Docker Compose YAML for common runtime options.
Docker Run command
Supports shell quotes, backslash escapes, and multiline continuations. Commands are never uploaded.
About Docker Run to Compose
Paste a docker run command, convert it to Compose YAML, and review the warnings before using the result.
Can every docker run option be converted?
No. Some flags have no direct Compose equivalent. Review volumes, ports, environment variables, and warnings, then validate with docker compose config.