-
Notifications
You must be signed in to change notification settings - Fork 670
Docker 25+ error 'API error (400): client version 1.18 is too old.' #4002
Comments
BackgroundIn docker version 25.0 they have changed the minimum supported api version from 1.12 to 1.24. Fix for Docker version 25.0Create file: /etc/systemd/system/docker.service.d/min-api-version.conf
systemctl daemon-reload IMPORTANTSupport for API versions lower than 1.24 will be permanently removed in Docker Engine v26, and the minimum supported API version will be incrementally raised in releases following that. Information sourced from: https://docs.docker.com/engine/deprecated/#deprecate-legacy-api-versions |
After daemon-reload also run |
restart of docker isn't necessary. It will sort it out itself but will take longer for it to handle it. |
Maybe, but i spent some time figuring out why it's not working. And this reccomendation is from docker docs: https://docs.docker.com/config/daemon/systemd/ (4th point) |
There is an active pull requests that has been worked ongoing since August 2023. But unsure if it will ever be merged. Unsure if this is going to be maintained in the future. But there is a fork of this that is being maintained. |
What happened?
After updating docker engine i got error:
How to reproduce it?
Install docker engine version 25+ (where minimum api version higher than 1.18)
$ docker version Client: Docker Engine - Community Version: 25.0.1 API version: 1.44 Go version: go1.21.6 Git commit: 29cf629 Built: Tue Jan 23 23:11:25 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 25.0.1 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: 71fa3ab Built: Tue Jan 23 23:09:52 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.27 GitCommit: a1496014c916f9e62104b33d1bb5bd03b0858e59 runc: Version: 1.1.11 GitCommit: v1.1.11-0-g4bccb38 docker-init: Version: 0.19.0 GitCommit: de40ad0
And launch weave
Versions:
The text was updated successfully, but these errors were encountered: