What is the Docker Run to Docker Compose?
A long docker run line is fine for a quick test, but hard to keep, change and share. A compose file describes the same container in a tidy, readable form that you can store next to your project and start with one command.
Paste the command and get a compose.yaml at once: image, container name, restart policy, ports, volumes and named volumes, environment variables and env files, labels, networks (external networks are declared for you), user, working folder, entrypoint and command, memory and CPU limits, devices, capabilities, health checks, logging and GPUs. Options with no compose equivalent are listed under the file so nothing is lost silently.
Features
Full compose file
A complete services: block, ready to run.
Ports and volumes
Kept exactly, with ports quoted safely.
Environment
Variables, env files and labels.
Networks
host mode or named networks, declared as external.
Limits and GPUs
Memory, CPUs, devices and NVIDIA GPUs.
Copy or download
Save compose.yaml in one click.
How to use the Docker Run to Docker Compose
- 1
Paste a docker run command.
- 2
Check the compose file and any notes.
- 3
Copy or download compose.yaml and run docker compose up -d.
Who it is for
Self-hosting
Turn the docker run line from a project README into a compose file.
Servers and VPS
Keep every container's settings in files you can back up.
Teams
Share a container setup in a readable form.
Tips for better results
- After saving compose.yaml, start it with docker compose up -d in the same folder.
- Move passwords from the environment into an .env file before you share the compose file.
Your privacy: it stays on your device
- This tool runs entirely in your browser. What you type and the files you choose are processed on your own device and are never sent to our server.
- Nothing is uploaded, stored or kept in a history, so it is safe for private text, documents, photos and keys.
- It keeps working on a slow connection, because no answer has to come back from a server.
Questions people ask
Is my command uploaded?
No. It is converted in your browser, so passwords in environment variables stay private.
Why are the ports in quotes?
YAML can read values like 22:22 as numbers in base 60. Quotes make sure Docker sees exactly what you typed.
What about --rm and -d?
Compose starts containers in the background with up -d and removes them with down, so these options are not needed in the file.