LOCAL TOOL / WEB

Docker Run → Compose Converter

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 & drop a text file 124 chars · 1 lines · 124 B
Options
Runs locally in this browserPreview updates after 280 ms · No content, filenames, or secrets are sent or saved.
About this utility

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.

  1. Paste, type, or drag and drop a supported text file into the input area.
  2. Choose the options that match your intended result.
  3. 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