From cc0bbdf797222834bfe22be3b024e03d0defe4cd Mon Sep 17 00:00:00 2001 From: Kitos Date: Tue, 10 Feb 2026 16:14:21 +0100 Subject: [PATCH] fix: auto-detect Docker API version to avoid client/server mismatch --- scripts/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 5b140c1..24c1648 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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"