Docker Run to Compose Converter
Convert common docker run flags into a Compose service YAML file.
Processing stays in your browser. Supports name, publish, env, volume, restart, detach, and trailing commands. Shell substitutions and unsupported flags are rejected. Review host mounts and environment values before use.
How to use the docker run to compose converter
Convert common docker run flags into a Compose service YAML file. Complete the docker run command fields above, or upload a UTF-8 text file for docker run command. Choose Run tool, review the output, then copy or download the result.
Example
-p 8080:80 becomes a ports entry.
Good to know
Supports name, publish, env, volume, restart, detach, and trailing commands. Shell substitutions and unsupported flags are rejected. Review host mounts and environment values before use.