{"ok":true,"result":{"slug":"docker-run-to-compose","name":"Docker Run to Compose","summary":"Convert one or more docker run commands into a docker-compose.yml: ports, volumes, env vars, networks, restart policy, healthchecks, resource limits and more. Unsupported flags come back as warnings.","description":"Convert docker run commands into a docker compose YAML file. Ports, volumes, env vars, networks, health checks, limits and logging are mapped for you.","method":"POST","endpoint":"/api/v1/tools/docker-run-to-compose","plan":"free","mcpName":"docker_run_to_compose","input":{"type":"object","additionalProperties":false,"properties":{"command":{"type":"string","description":"One or more docker run commands, separated by new lines, ; or &&. Line continuations (\\) are fine.","maxLength":100000},"resources":{"type":"string","description":"How to write --memory/--cpus: deploy (deploy.resources.limits) or legacy (mem_limit and cpus).","default":"deploy","enum":["deploy","legacy"],"maxLength":200000},"containerName":{"type":"boolean","description":"Add container_name when --name is given.","default":true}},"required":["command"]},"example":{"command":"docker run -d --name web -p 8080:80 -e NGINX_HOST=example.com -v ./html:/usr/share/nginx/html:ro --restart unless-stopped nginx:1.27"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/docker-run-to-compose","page":"https://pithlab.com/tools/docker-run-to-compose"}}