Docker / Podman container lifecycle management.
Detects the available container runtime (Docker or Podman) and provides a unified interface for container and compose operations.
All command execution is routed through Arrea.Command.execute/2 with
validate: false. Runtime is auto-detected via
Trebejo.Proc.command_exists?/1; environment variable CONTAINER_RUNTIME
(docker | podman) overrides the detection.
Container detection
Use runtime/0 to detect the available runtime, or set the
CONTAINER_RUNTIME environment variable to override.
Summary
Functions
Builds images.
Stops and removes services.
Executes a command in a service container.
Returns true if running inside a container.
Shows logs.
Creates a network.
Lists networks.
Removes a network.
Lists running services.
Pulls images.
Restarts services.
Detects the available container runtime.
Starts services defined in docker-compose.yml.
Creates a volume.
Lists volumes.
Removes a volume.
Types
Functions
Builds images.
Stops and removes services.
Executes a command in a service container.
@spec in_container?() :: boolean()
Returns true if running inside a container.
Shows logs.
Creates a network.
Lists networks.
Removes a network.
Lists running services.
Pulls images.
Restarts services.
@spec runtime() :: runtime() | :none
Detects the available container runtime.
Starts services defined in docker-compose.yml.
Creates a volume.
Lists volumes.
Removes a volume.