]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: pin DOCKER_API_VERSION to minikube's daemon version
authorDavid Galloway <david.galloway@ibm.com>
Thu, 26 Mar 2026 21:01:31 +0000 (17:01 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 26 Mar 2026 21:22:27 +0000 (17:22 -0400)
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 <david.galloway@ibm.com>
src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh

index f46b227c8f7faab8fdb168a78a56bd40537b69a9..0005e3f23f6193d5478e223857833a6e6b6e9a77 100755 (executable)
@@ -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() {