redtools.

Docker Run to Compose Converter

Convert supported docker run flags into Compose YAML.

  • Free
  • No sign-up
  • Runs in your browser

How to use Docker Run to Compose Converter

Docker Run to Compose Converter: Input. Press Convert, review the result and stated limits, then copy or download. Nothing runs automatically.

Formula and assumptions

Convert supported docker run flags into Compose YAML. Input is not executed as code.

Example

Example input: docker run --name web -p 8080:80 -e MODE=production --restart unless-stopped nginx:alpine. The editable workspace demonstrates the selected transformation. Example output: services: web: ports: - 8080:80 environment: - MODE=production restart: unless-stopped image: nginx:alpine

Limits and output

Literal docker run with --name, -p/--publish, -v/--volume, -e/--env, --restart, --network and -d/--detach. Unsupported flags, shell expansion, files and dynamic substitutions are rejected. Compose output is generated, not executed. Maximum 200,000 UTF-8 input bytes per field and 1 MB output. Processing can be cancelled.

Sources and review

Tool methods reviewed 7 October 2026. Read the stated input and output limits.

Good to know

RedTools is an early version of an everyday utility workspace. Image, text, calculation, and developer inputs are processed in your browser.

Your favorites, recently used tool IDs, and theme choice are stored on this device. Tool inputs are not automatically saved. Invoice drafts are saved on this device only when you choose Save draft locally. Hosting can receive ordinary page requests; this app includes no analytics.

Image and PDF tools, including compression and conversion, run locally in your browser.

Icons: Solar by 480 Design · CC BY 4.0. Components: Be UI and shadcn/ui.

↑↓ to move · Enter to open · Esc to close