Learn

Docker Run to Compose Guide

About this tool

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.

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.