Free online tools for web developers and designers.
31 Tools available.
Supports docker run and podman run. Line continuations (\) and combined flags (-it) are handled automatically.
Paste a docker-compose.yml and generate the equivalent run command for each service.
| docker run flag | Compose key | Notes |
|---|---|---|
| Container Identity | ||
--name NAME | container_name: NAME | Also used as service name |
--hostname HOST | hostname: HOST | |
--platform linux/amd64 | platform: linux/amd64 | |
| Image & Command | ||
IMAGE[:TAG] | image: IMAGE[:TAG] | Positional argument |
COMMAND [ARGS] | command: COMMAND | After image name |
--entrypoint CMD | entrypoint: CMD | |
| Ports & Volumes | ||
-p 80:80 | ports: ["80:80"] | Short & long syntax |
--expose 8080 | expose: [8080] | Internal port only |
-v /host:/cnt | volumes: [/host:/cnt] | Bind mount |
-v name:/cnt | volumes: [name:/cnt] | Named volume |
--tmpfs /tmp | tmpfs: [/tmp] | |
| Environment | ||
-e KEY=VALUE | environment: [KEY=VALUE] | Or object syntax |
--env-file .env | env_file: [.env] | |
| Network | ||
--network NAME | networks: [NAME] | |
--dns 8.8.8.8 | dns: [8.8.8.8] | |
--dns-search dom | dns_search: [dom] | |
--add-host h:ip | extra_hosts: [h:ip] | |
| Lifecycle | ||
--restart POLICY | restart: POLICY | no, always, unless-stopped, on-failure |
-d / --detach | — | Implicit in Compose |
--rm | — | No equivalent; omit restart |
--stop-signal SIG | stop_signal: SIG | |
--stop-timeout N | stop_grace_period: Ns | |
| Runtime Flags | ||
-t / --tty | tty: true | |
-i / --interactive | stdin_open: true | |
--privileged | privileged: true | |
--read-only | read_only: true | |
--init | init: true | |
-u USER | user: USER | |
-w /path | working_dir: /path | |
| Security | ||
--cap-add CAP | cap_add: [CAP] | |
--cap-drop CAP | cap_drop: [CAP] | |
--security-opt OPT | security_opt: [OPT] | |
--device /dev/x | devices: [/dev/x] | |
| Resources | ||
-m 512m | mem_limit: 512m | |
--memory-swap 1g | memswap_limit: 1g | |
--cpu-shares 512 | cpu_shares: 512 | |
--cpus 1.5 | cpus: 1.5 | |
--cpuset-cpus 0-1 | cpuset: 0-1 | |
--shm-size 64m | shm_size: 64m | |
--ulimit nf=1024 | ulimits.nofile: 1024 | |
| Logging | ||
--log-driver DRV | logging.driver: DRV | |
--log-opt K=V | logging.options.K: V | |
| Healthcheck | ||
--health-cmd CMD | healthcheck.test: [CMD-SHELL, CMD] | |
--health-interval T | healthcheck.interval: T | |
--health-timeout T | healthcheck.timeout: T | |
--health-retries N | healthcheck.retries: N | |
--no-healthcheck | healthcheck.disable: true | |
| Labels | ||
-l KEY=VAL | labels: [KEY=VAL] | |
These Compose features have no direct docker run equivalent:
depends_onbuildprofilesdeploysecrets / configsvolumes| Value | Behavior |
|---|---|
no | Never restart (default) |
always | Always restart |
unless-stopped | Restart unless manually stopped |
on-failure | Only on non-zero exit |
on-failure:3 | Max 3 retries |
\ at line end to break long commands across multiple lines.-it or -dp are parsed correctly.--flag value and --flag=value formats are supported.depends_on, build or custom network configs after conversion.docker run command.