Docker Run to Compose

Convert common docker run commands into a starter docker-compose service block.

Free to useBrowser-firstBilingual helpReady on page
Tool area

Use it directly on this page

DockerComposeDevOps
Tool area

Loading tool

The tool will be ready here as soon as the page finishes loading.

How to use

How to use Docker Run to Compose

1 Paste the docker run command into the editor.
2 Review the detected image, ports, volumes and environment variables.
3 Copy the generated Compose block and continue editing it in your project.
Common uses

Docker Run to Compose works well for these tasks

Migrate one-off container commands into Compose

Document container settings for teammates

Extract ports, volumes and env vars from copied docker run commands

FAQ

Frequently asked questions

What is Docker Run to Compose useful for?

Migrate one-off container commands into Compose

How do I start using Docker Run to Compose?

Paste the docker run command into the editor. Review the detected image, ports, volumes and environment variables. Copy the generated Compose block and continue editing it in your project.

What should I do after this result?

Most people continue with JSON Formatter, Regex Tester, HTTP Status Code Lookup next.