A short companion for Docker Run to Compose: when it is useful, what it expects, and what to check before using the result.
What it does
Turn a docker run command into a docker-compose.yml service, mapping ports, volumes, environment variables, restart policy and the command into their Compose equivalents.
Use the tool
Open Docker Run to Compose, add the input the tool asks for, run it, and check the output before using it elsewhere.
Input and output
- Input: text.
- Output: text.
- Category: Workflow.
Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.
Questions
Does it understand every flag?
It covers the common ones — ports, volumes, environment, restart, network, command and entrypoint. Anything it does not recognise is reported rather than silently dropped.
Related guide
For broader background, see Docker Basics.