Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions _common/docker.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,16 @@ _get_container_engine() {
export CONTAINER_ENGINE
if _is_container_engine "docker"; then
CONTAINER_ENGINE="docker"
builder_echo "Using container engine: $CONTAINER_ENGINE"
elif _is_container_engine "podman"; then
CONTAINER_ENGINE="podman"
builder_echo "Using container engine: $CONTAINER_ENGINE"
else
builder_die "No supported container engine found. Please install Docker or Podman to run containerized builds."
# deployment uses k8s, not docker or podman, so we don't want to kill the
# script here, just emit a warning
builder_echo warning "No supported container engine found. Please install Docker or Podman to run containerized builds."
# Use `docker` so that calls to CONTAINER_ENGINE make sense even when they fail
CONTAINER_ENGINE="docker"
fi
}

Expand All @@ -244,4 +250,4 @@ _get_container_engine() {
################################################################################

_get_container_engine
builder_echo "Using container engine: $CONTAINER_ENGINE"