Detects which container engine is in use: Docker, Podman, or minikube.
Detection is cached after the first call via :persistent_term.
Summary
Functions
Detects the container engine type.
Returns true when running in a minikube environment.
Returns true when running with Podman.
Functions
@spec detect() :: :docker | :podman | :minikube
Detects the container engine type.
Returns one of:
:podman— ifCONTAINER_HOSTis set or the daemon identifies as Podman:minikube— if minikube env vars are set or DOCKER_HOST matches minikube subnets:docker— default fallback
Results are cached after the first call.
@spec minikube?() :: boolean()
Returns true when running in a minikube environment.
@spec podman?() :: boolean()
Returns true when running with Podman.