We are experiencing a failure in our Bitbucket pipeline related to the Docker client version. Even after attempting to upgrade Docker in our pipeline image, the pipeline continues to use an older Docker client, resulting in API compatibility issues.
We are experiencing a failure in our Bitbucket pipeline related to the Docker client version. Even after attempting to upgrade Docker in our pipeline image, the pipeline continues to use an older Docker client, resulting in API compatibility issues.
Pipeline Configuration:
<span>image:<br> name: <image><br> username: $DOCKER_USERNAME<br> password: $DOCKER_PASSWORD<br>options:<br> max-time: 90 </span>
Base image <image> is a custom Node-based image.
In the Dockerfile, we attempt to upgrade Docker to version 28.5.2:
<span>ENV DOCKER_VERSION="28.5.2" RUN export VERSION=${DOCKER_VERSION}; \ curl -fsSL --retry 3 <a href="https://get.docker.com" target="_blank" rel="nofollow noopener noreferrer">https://get.docker.com</a> | sh && \ docker --version</span>
Observed Behavior:
<span>docker: Error response from daemon: client version 1.41 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version. </span>