fix: auto-detect Docker API version to avoid client/server mismatch
This commit is contained in:
@@ -69,6 +69,13 @@ else
|
|||||||
fi
|
fi
|
||||||
print_ok "Docker Compose found ($COMPOSE_CMD)"
|
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 ──────────────────────────────────────────────
|
# ── 2. Setup .env file ──────────────────────────────────────────────
|
||||||
|
|
||||||
print_header "Environment configuration"
|
print_header "Environment configuration"
|
||||||
|
|||||||
Reference in New Issue
Block a user