How to use Docker Run → Compose Converter
Parse a bounded docker run command into an inspectable Compose model without invoking a shell.
What to provide
Paste one docker run command. Common ports, volumes, environment, restart, network, user, working-directory, entrypoint, health, and capability flags are supported.
- Paste, type, or drag and drop a supported text file into the input area.
- Choose the options that match your intended result.
- Select “Run tool” or press Ctrl/Command + Enter, then copy, download, or move the result back into the first input for another pass.
What the result means
Compose YAML with a service name, image, command, and mapped options.
Privacy and safety
This utility is loaded as browser code and processes your input only in this tab. OmniCastConverter has no upload endpoint and never stores your content, filenames, tokens, or secrets. Generated markup and code are shown as inert text and are never executed.
Limitations
- Shell substitutions, pipelines, redirects, secrets from the environment, unsupported Docker flags, and platform-specific path expansion are rejected or reported for manual review.
Try the included example
Select “Load example” at any time to restore this tested sample.
docker run -d --name web --restart unless-stopped -p 8080:80 -e NODE_ENV=production -v ./data:/app/data:ro nginx:1.27-alpine