ScaleWhite Tools

Docker Run / Compose Converter

Convert between docker run commands and docker-compose.yml format.

What is this tool?

A tool to convert between docker run commands and docker-compose.yml format. Organize long docker run commands into Compose format, or generate individual run commands from existing docker-compose.yml files. Supports major options including ports, volumes, environment variables, networks, and resource limits.

How to use

  1. Enter a docker run command on the left, or docker-compose.yml on the right.
  2. Click the conversion direction button.
  3. The result will appear in the opposite field. Use the copy button to copy the result.

Examples

  • Convert long docker run commands to Compose format for easier management.
  • View each service in docker-compose.yml as individual docker run commands.
  • Consolidate multiple docker run commands into a single docker-compose.yml.