Back to Tutorials
Run a Container from a Template
Browse the built-in template library, pick a pre-configured service, customize settings, and launch.
Prerequisites
- Docker is installed and running
- For the full template library (35+ templates), a Pro subscription is required; Free users have access to 10 basic templates
Scenario 1: Launch MySQL from Template
- Click Containers in the sidebar
- Click the + button to open the Run Container sheet
- Click the Templates tab at the top of the sheet
- Browse by category — click Databases
- Select MySQL from the list
- The form auto-fills with:
- Image:
mysql:8 - Port:
3306→3306(tcp) - Env:
MYSQL_ROOT_PASSWORD= (auto-generated secure password) - Env:
MYSQL_DATABASE=mydb - Restart Policy:
unless-stopped
- Image:
- Optionally change the database name or add more env vars
- Click Run
Scenario 2: Launch Redis from Template
- Open Run Container → Templates → Caching
- Select Redis
- Auto-filled configuration:
- Image:
redis:7-alpine - Port:
6379→6379(tcp) - Restart Policy:
unless-stopped
- Image:
- Click Run
Scenario 3: Launch Nginx from Template
- Open Run Container → Templates → Web Servers
- Select Nginx
- Auto-filled configuration:
- Image:
nginx:alpine - Port:
8080→80(tcp) - Restart Policy:
unless-stopped
- Image:
- Optionally add a bind mount for your HTML files:
- Host Path:
~/Projects/my-site - Container Path:
/usr/share/nginx/html
- Host Path:
- Click Run
Available Template Categories
| Category | Templates |
|---|---|
| Databases | MySQL, PostgreSQL, MongoDB, MariaDB, ClickHouse, CockroachDB, Cassandra, InfluxDB, Neo4j, Valkey |
| Web Servers | Nginx, Apache, Caddy, Traefik |
| Caching | Redis, Memcached |
| Development | Node.js, Python, Go, Ruby, Rust, PHP, Java |
| Messaging | RabbitMQ, Redpanda, NATS |
| Monitoring | Portainer, Uptime Kuma, Grafana, Prometheus, Dozzle |
| Utilities | Alpine, Ubuntu, BusyBox, Gitea, n8n, Ollama, Pi-hole, Vault |
What You'll See
- After selecting a template, all fields (image, ports, env vars, volumes) pre-populate automatically
- Secret environment variables (passwords, tokens) show a lock icon and are auto-generated with secure random values
- The container launches and appears in the list with the template's icon and color
Tips
- Search templates by name, description, or image — use the search bar at the top of the Templates tab
- Passwords are auto-generated using cryptographically secure random bytes (16 alphanumeric characters) — copy them from the Env tab in the container's Inspect view
- You can save a running container as a custom template via the ... overflow menu → Save as Template (Pro feature)
- Custom templates appear under My Templates in the template picker