Paste a docker run command and get back a docker-compose.yml service definition. Fifteen flag types are translated, including ports, volumes, environment variables, networks, restart policy, and resource limits.
Paste a docker run command and convert it to a docker-compose.yml. Supports ports, volumes, env vars, networks, restart policies, and more.
This is the conversion everybody does by hand when a README gives you a docker run one-liner and your project uses Compose. It is mechanical work with a lot of small traps: -p is ports but -e is a map not a list, -v needs to distinguish bind mounts from named volumes, and --restart unless-stopped has a different meaning from always.
The output targets Compose file format 3.8, which is the version with the widest support across Docker Engine and Swarm. If you are on a recent Docker Compose V2 you can drop the version key entirely; it is ignored and now emits a warning.