From 9af955e8490a22e85fa4355b748cc6192be04fa1 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 26 Mar 2026 17:01:31 -0400 Subject: [PATCH] mgr/rook: pin DOCKER_API_VERSION to minikube's daemon version The host Docker client may be newer than the Docker daemon running inside minikube, causing builds to fail with "client version X is too new". Export DOCKER_API_VERSION set to the server's actual API version after sourcing the minikube docker-env to prevent the mismatch. Signed-off-by: David Galloway --- src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh b/src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh index f46b227c8f7f..0005e3f23f61 100755 --- a/src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh +++ b/src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh @@ -52,6 +52,12 @@ setup_minikube_env() { source /tmp/minikube-env.sh rm -f /tmp/minikube-env.sh + + # Pin Docker API version to what minikube's daemon supports, + # in case the host docker client is newer + if [[ "$CONTAINER_RUNTIME" == "docker" ]]; then + export DOCKER_API_VERSION=$(docker version --format '{{.Server.APIVersion}}' 2>/dev/null || echo "1.43") + fi } build_ceph_image() { -- 2.47.3