Docker Run ⇄ Compose

Docker Run ⇄ Compose is a free online converter that turns docker run commands into docker-compose.yml configuration and back again. Port mappings, volume mounts, environment variables, and other flags are parsed and mapped to their Compose equivalents automatically.

Everything runs locally in your browser — your commands and configs are never uploaded. Free with no sign-up, it's handy for turning ad-hoc docker run commands into maintainable Compose files, or extracting a single run command from an existing Compose setup.

How to Use

  1. Paste a docker run command on the left, or a Compose config on the right
  2. Click "Run to Compose" or "Compose to Run" to convert
  3. Review the generated config or command in the opposite panel
  4. Copy the result to save as docker-compose.yml or run directly

FAQ

Is the Docker Run ⇄ Compose converter free?

Yes, completely free with no conversion limits and no account required.

Are my commands or configs uploaded?

No. The conversion runs entirely in your browser, so commands containing image names, environment variables, or other details never reach a server.

Which docker run flags are supported?

Common flags such as port mappings (-p), volume mounts (-v), environment variables (-e), container name (--name), and restart policy (--restart) are parsed and mapped to the corresponding Compose fields.

Why convert docker run commands to Compose?

A Compose file is easier to read, maintain, and version-control than a long command, and it scales to multi-container setups. The reverse direction helps when you need a quick run command on a host without Compose.

Comments

Log in to post a comment