Toolbox / Docker run to Compose Runs in your browser中文
Development

Docker run to Compose

Generate Compose YAML from a command and report unsupported options.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Convert Docker run text into Compose YAML as a deployment configuration draft.

Actions: Process

Example

Choose Compose Specification; the command name, port, and image become service configuration.

Example action and settings

Action: Process
Compose format: Compose Specification

Input / action

docker run --name web -p 8080:80 nginx:alpine

Result / expected behavior

services:
  nginx:
    container_name: web
    ports:
      - 8080:80
    image: nginx:alpine

Available options: Compose format

Scope and limitations

  • Does not execute Docker; unsupported options appear as comments and output still needs review.

Common mistakes

  • Input must be a docker run command; successful conversion does not prove safe deployment.

Related tools

YAML formatter & validator

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.