Skip to main content

Module container

Module container 

Source
Expand description

Container integration for sidecar service orchestration.

Provides types and configuration for managing containerized sidecar services (databases, caches, external APIs) alongside the agent process.

§Feature Gate

This module is compiled unconditionally, but actual Docker integration requires the containers feature flag. Without it, ContainerManager::new returns a manager that rejects all operations with ContainerError::DockerNotAvailable.

§Architecture

Each managed container is wrapped in a ContainerService and registered in the kernel’s ServiceRegistry, making container health visible through the standard health monitoring system.

Structs§

ContainerConfig
Configuration for the container manager.
ContainerHealth
Health report for a single managed container.
ContainerManager
Container lifecycle manager.
ContainerService
Wraps ContainerManager as a SystemService so it participates in the kernel’s service registry lifecycle and health aggregation.
ManagedContainer
Specification for a managed container.
PortMapping
Port mapping between host and container.
VolumeMount
Volume mount configuration.

Enums§

ContainerError
Container manager errors.
ContainerState
Container lifecycle state.
RestartPolicy
Container restart policy.