[Docker](EN) Solve client version 1.24 is too old issue
Environment and Prerequisite
- Docker
Background
- A build error occurred during the docker build process with the following message.
Error response from daemon: client version 1.24 is too old.
Cause
Docker Build Request Process
- The Docker CLI(Client) sends a build request to the Docker Daemon(Server).
Docker CLI -> Docker Daemon
Version Mismatch in Docker Daemon
- This error occurs when the API version requested by the Docker CLI(Client) is lower than the minimum version allowed by the Docker Daemon(Server).
Docker CLI -[Use API version 1.24]-> Docker Daemon
Solution
- Create or edit the
/etc/docker/daemon.jsonfile with the following configuration, then restart the Docker service usingsudo systemctl restart docker.
{
"min-api-version": "1.24"
}
Opinion
While there are several ways to solve this, this specific solution wasn’t easily found on the web. Even AI suggested it only after some digging. However it seemed to be the most straightforward fix so I used it. Of course this is a temporary workaround. Upgrading the client version would be the more appropriate long term solution.