All tools / Converters

Docker Run to Compose

Turn a docker run command into docker-compose YAML.

Runs in your browser · your data never leaves your device
Ad space

How it works

Supports --name, -p, -v, -e, --restart, --network, -w, the image and any trailing command. Flags it does not recognise are skipped, so review the result.

Frequently asked questions

Where do I use the output?

Save it as docker-compose.yml and run docker compose up -d.

Related tools