fix: auto-detect Docker API version to avoid client/server mismatch

This commit is contained in:
2026-02-10 16:14:21 +01:00
parent de6f3fbea4
commit cc0bbdf797

View File

@@ -69,6 +69,13 @@ else
fi
print_ok "Docker Compose found ($COMPOSE_CMD)"
# Auto-detect Docker API version to avoid client/server mismatch
DOCKER_SERVER_API=$(docker version --format '{{.Server.APIVersion}}' 2>/dev/null || echo "")
if [ -n "$DOCKER_SERVER_API" ]; then
export DOCKER_API_VERSION="$DOCKER_SERVER_API"
print_info "Docker API version: $DOCKER_SERVER_API"
fi
# ── 2. Setup .env file ──────────────────────────────────────────────
print_header "Environment configuration"