Docker Run Command

Paste your docker run command below to convert it

Live conversion
Supports most Docker flags
Convert

Docker Compose Output

YAML
version: "3.8"

services:
  app:
    image: nginx
    ports:
      - "80:80"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
    restart: always
    logging:
      options:
        max-size: 1g

✓ Conversion successful • Ready to use

How it works

Simply paste your docker run command and get an instant docker-compose.yml file ready for deployment.

Supported features

Ports, volumes, environment variables, restart policies, networks, and most common Docker flags are supported.