← Back to DevKit

Docker Run to Compose

DOCKER → COMPOSE · DEV TOOLS

Turn a docker run command into an equivalent docker-compose.yml — ports, volumes, environment, name, restart policy and network, all parsed locally with zero upload.

docker run command
docker-compose.yml

  
Parsed entirely locally — your command is never uploaded; unrecognized flags are noted below. For multiple containers, parse each and merge their services.
Embed code

Paste the code below into your page to embed this tool as an iframe (nav and footer auto-hidden).

Heightpx
This tool runs entirely in your browser — input never leaves your device. Press Ctrl K to switch tools anytime.