IT-tools

Docker → Compose

Convert a docker run command into a Docker Compose service definition. Handles common flags for ports, volumes, environment, and restart.

docker-compose.yml
Paste a docker run command.

// About this tool

Move a one-off docker run command into a reusable compose file. Paste the command and copy the generated YAML service block. The generated YAML is ready for docker compose.

// How to use it

  1. Paste a docker run command.
  2. Review the generated compose service.
  3. Copy the YAML into your compose file.

// Frequently asked questions

Which flags are supported?

Common flags such as name, publish, volume, env, restart, network, hostname, and user; other arguments are passed through.

Is my command uploaded?

No. Conversion happens locally in your browser.