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

  1. Click Containers in the sidebar
  2. Click the + button to open the Run Container sheet
  3. Click the Templates tab at the top of the sheet
  4. Browse by category — click Databases
  5. Select MySQL from the list
  6. 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
  7. Optionally change the database name or add more env vars
  8. Click Run

Scenario 2: Launch Redis from Template

  1. Open Run Container → Templates Caching
  2. Select Redis
  3. Auto-filled configuration:
    • Image: redis:7-alpine
    • Port: 6379 6379 (tcp)
    • Restart Policy: unless-stopped
  4. Click Run

Scenario 3: Launch Nginx from Template

  1. Open Run Container → Templates Web Servers
  2. Select Nginx
  3. Auto-filled configuration:
    • Image: nginx:alpine
    • Port: 8080 80 (tcp)
    • Restart Policy: unless-stopped
  4. Optionally add a bind mount for your HTML files:
    • Host Path: ~/Projects/my-site
    • Container Path: /usr/share/nginx/html
  5. Click Run

Available Template Categories

CategoryTemplates
DatabasesMySQL, PostgreSQL, MongoDB, MariaDB, ClickHouse, CockroachDB, Cassandra, InfluxDB, Neo4j, Valkey
Web ServersNginx, Apache, Caddy, Traefik
CachingRedis, Memcached
DevelopmentNode.js, Python, Go, Ruby, Rust, PHP, Java
MessagingRabbitMQ, Redpanda, NATS
MonitoringPortainer, Uptime Kuma, Grafana, Prometheus, Dozzle
UtilitiesAlpine, 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

Related Tutorials