Docker → Compose
Convert a docker run command into a Docker Compose service definition. Handles common flags for ports, volumes, environment, and restart.
docker-compose.yml
Paste a docker run command.// About this tool
Move a one-off docker run command into a reusable compose file. Paste the command and copy the generated YAML service block. The generated YAML is ready for docker compose.
// How to use it
- Paste a docker run command.
- Review the generated compose service.
- Copy the YAML into your compose file.
// Frequently asked questions
Which flags are supported?
Common flags such as name, publish, volume, env, restart, network, hostname, and user; other arguments are passed through.
Is my command uploaded?
No. Conversion happens locally in your browser.