Convert a docker run command into an equivalent docker-compose.yml
Docker run command
compose.yml
Drop this into a compose.yml next to your project.
About this converter
Paste any docker run … command and get an equivalentcompose.yml. Flags are mapped to their compose counterparts: -p/--publish → ports,-v/--volume → volumes,-e/--env → environment, --name → service key + container_name, --restart,--network, --label, --cap-add,--workdir, --entrypoint, --user,--hostname, --dns, --device, and--health-* flags. Unknown flags are listed as YAML comments so nothing is silently dropped.