Current toolDocker Run to Compose
Linux & operations · DEV-17Submit an issue

Docker Run to Compose

Convert common docker run commands into editable Docker Compose YAML automatically.

docker run → Compose YAML
Input
Result
Usage guide and examples

Docker Run to Compose

Convert common docker run commands into editable Docker Compose YAML automatically.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

docker run -p 8080:80 nginx

What to check in the result

services:
  …:
    image: nginx
    ports:
      - "8080:80"