DevOps · Containers

Docker Run ↔ Docker Compose Converter

Paste a docker run command to get a clean docker-compose.yml — or drop in a Compose file to get the equivalent CLI. Parsing happens entirely in your browser.

docker-compose.yml

        
Is my docker command uploaded anywhere?

No. The parser, the YAML writer and the YAML reader are plain JavaScript running in this tab. Nothing is sent to a server, logged or stored — you can even use the page offline once it has loaded.

What happens to flags that Compose cannot express?

Flags such as --rm, -P/--publish-all or --link have no direct Compose key. They are listed under “Notes” next to the output so nothing disappears silently, while everything with an equivalent (--name, -p, -e, -v, --network, --health-cmd, --memory, --cpus, --restart and many more) is converted.