docker run
docker run -d -p 8080:80 --name web nginx:latest
compose snippet
services:
web:
image: nginx:latest
ports:
- "8080:80"Developer Tools
Convert docker run commands into docker-compose.yml locally in your browser, recognizing ports, volumes, environment variables, and images. Useful for turning one-off runs into reusable compose files.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
开发工具
Convert docker run commands into docker-compose.yml locally in your browser, recognizing ports, volumes, environment variables, and images. Useful for turning one-off runs into reusable compose files.
输入 docker run 命令后会自动转换。
docker run
docker run -d -p 8080:80 --name web nginx:latest
compose snippet
services:
web:
image: nginx:latest
ports:
- "8080:80"Common ports, volumes, env vars, names, and images are covered. Rare or legacy flags may be skipped and need manual review.
The output is a usable docker-compose.yml structure. Add version fields if your team requires a specific convention.
Tools
Continue with another translated tool for a nearby task.
Dockerfile Generator
Generate Dockerfiles for Node, Python, Go, and related stacks with optional multi-stage builds, non-root users, timezone packages, and a matching .dockerignore starter.
Docker Compose Generator
Select App, Nginx, database, and cache services to generate a local docker-compose.yml with ports and common dependency combinations for dev or demo environments.
YAML to JSON
Convert YAML to formatted JSON in your browser with two-space indentation by default. Parse failures show the reason, and conversion stays local—useful for config debugging and API handoffs.