From: David Galloway Date: Thu, 26 Mar 2026 21:01:31 +0000 (-0400) Subject: mgr/rook: pin DOCKER_API_VERSION to minikube's daemon version X-Git-Tag: v21.0.1~639^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9af955e8490a22e85fa4355b748cc6192be04fa1;p=ceph.git 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 --- 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 f46b227c8f7..0005e3f23f6 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() {