Docker / Podman container lifecycle management.
Detects the available container runtime (Docker or Podman) and provides a unified interface for container and compose operations.
Container detection
Use runtime/0 to detect the available runtime, or set the RUNTIME
environment variable to override (docker or podman).
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.