# Docker Run to Compose

Turn a docker run command into a docker-compose service.

## URL

https://ilham.dev/tools/docker-run-to-compose/

## What It Does

Turn a docker run command into a docker-compose.yml service, mapping ports, volumes, environment variables, restart policy and the command into their Compose equivalents.

## Features

- Runs in the browser
- No login required

## Input

text input.

## Output

text output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- Does it understand every flag?




## Questions

### Does it understand every flag?

No. The parser handles selected flags but silently skips some unknown options. It also treats anything after the image name as a command. Compare every option against the source before trusting or running the result.

