Home / Developer / docker run to Compose

docker run to Compose

Turn one or more docker run commands into a docker compose YAML file.

Free, no uploads, no sign-up. Runs 100% in your browser.

How docker run to Compose works

Each docker run command is parsed with composerize and merged into one compose file with a service per command. Line continuations with \ are joined first.

Output: YAML.

How to use docker run to Compose

  1. Open docker run to Compose and paste or type your input.
  2. Results update instantly as you type.
  3. Tweak options such as format, indentation or algorithm.
  4. Copy the output or download it as a file.

Tips

  • Everything is computed locally. Safe for tokens, keys and private data.
  • Use Ctrl/⌘ + K to jump between developer tools quickly.

docker run to Compose FAQ

Are my files uploaded?
No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
Is it free? Are there limits or watermarks?
Free and open source (MIT). There are no file-size caps, daily quotas, accounts or watermarks.
Does it work offline?
Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.

Related tools

  • YAML ⇄ JSON: Convert between YAML and JSON with validation.
  • cURL to Code: Convert cURL to JavaScript, Python, Go, Rust, PHP, Java and more.
  • JSON Formatter: Prettify, validate, minify and explore JSON as a tree.
  • QR Code Generator: QR codes for links, Wi-Fi, vCards and text with colors and logo.

OpenFile runs in your browser. Turn on JavaScript to use the tools.