Docker Run to Docker Compose
Compose Spec
Convert docker run or podman run CLI flags into structured docker-compose.yml files in your browser.
About This Tool
Translating long, multi-flag docker run commands from README files or shell history into declarative docker-compose.yml manifests by hand is tedious and error-prone. This utility tokenizes POSIX shell arguments, quotes, and backslash line continuations directly in browser memory.
Once converted into a Compose service definition, you can copy the YAML, download it as docker-compose.yml, or pipe the output directly into the Docker Compose to Kubernetes converter.
Key Features
- Shell-Aware Tokenizer: Handles single quotes, double quotes, escaped spaces, combined short flags (-itd), and multiline backslash continuations.
- Resource & Security Mapping: Maps --memory and --cpus into deploy.resources.limits and preserves --cap-add, --cap-drop, and --privileged flags.
- Direct K8s Piping: One-click transfer sends your generated Compose YAML straight into the Kubernetes Deployment and Service generator.