Docker Community Forums

Share and learn in the Docker community.

How to upgrade docker API version?

Here is my docker version output:

[root@docker-dtr ~]# docker version
Client:
Version: 17.03.0-ce
API version: 1.24 (downgraded from 1.26)
Go version: go1.7.5
Git commit: 60ccb22
Built: Thu Feb 23 10:54:03 2017
OS/Arch: linux/amd64

Server:
Version: ucp/2.0.1
API version: 1.26 (minimum version )
Go version: go1.7.1
Git commit: 12c8921
Built: Tue Nov 22 15:27:57 UTC 2016
OS/Arch: linux/amd64
Experimental: false

Why Client API version is 1.24 (downgraded from 1.26)? I removed and reinstalled Docker engine a couple times, and did not help.

How to bring up API version to 1.26?

Thanks.

I am facing a similar problem. I have to update to version 1.25 to use prune command but I don’t know how I can do it.

What you and the OP have in common, is that you share the problem of running old docker versions. The OP likely has a version mismatch between docker client and engine.

I realy don’t understand why people are so eager to stay with versions that are 3 years old… docker went general available with the stable 1.0 version in October 14, which was roughly 5,5 years ago.