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:
image:
name: <image>
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
options:
max-time: 90
Base image <image> is a custom Node-based image.
In the Dockerfile, we attempt to upgrade Docker to version 28.5.2:
ENV DOCKER_VERSION="28.5.2" RUN export VERSION=${DOCKER_VERSION}; \ curl -fsSL --retry 3 https://get.docker.com | sh && \ docker --version
Observed Behavior:
When running the pipeline on master, the following error occurs:
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.
Running docker --version inside the pipeline step reports:
Docker version 20.10.24, build 297e128