Image Configuration
1. Image Overview
Docker images define the container templates used for creating subscription instances. Each image specifies the Odoo version, configuration paths, and environment assignment strategy.
Fields
- Name - Image name (required, tracked)
- Odoo Version - Version string displayed to clients (required, tracked)
- Config File - Configuration file directory path (required, tracked)
- Image Tags - Docker image tags (required, Many2many)
- Environment - Default Portainer environment
- Select Environment By - Assignment strategy (default:
sequence):sequence- Pick environment by priority orderused- Pick environment with lowest usage (most available capacity)
- Active - Archive toggle (default: True)
Image-Environment Mapping
An image can be available in multiple environments. The mapping table tracks which environments can run each image.
- Sequence - Priority order for environment selection
- Image - Docker image reference (required)
- Environment - Portainer environment reference
- Environment State - Capacity status (related from environment)
- Max Running Containers - Environment capacity (related)
- Available Capacity - Remaining slots (related)
- Running Containers - Current load (related)
- Root Server - Server hosting this environment (related)
Environment Selection
When a new subscription is created, get_best_environment() returns the optimal environment based on the image's selection strategy - either the highest-priority environment (by sequence) or the least-loaded one (by available capacity).
2. Image Tags
Simple labels for organizing and identifying Docker image versions.
Fields
- Name - Tag name (required, tracked)