1. 程式人生 > >docker報Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

docker報Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

amd64 client export mit als 大堆 server rim rime

docker version

Client:
Version: 17.05.0-ce
API version: 1.24 (downgraded from 1.29)
Go version: go1.7.5
Git commit: 89658be
Built: Fri May 5 15:36:11 2017
OS/Arch: linux/amd64
Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

在網上找了一大堆方法測試,始終還是不行,而簡單粗糙得辦法是把docker client的api 接口改為1.19與服務段一致

export DOCKER_API_VERSION=1.19

docker version
Client:
Version: 17.05.0-ce
API version: 1.19
Go version: go1.7.5
Git commit: 89658be
Built: Fri May 5 15:36:11 2017
OS/Arch: linux/amd64

Server:
Version: 1.7.1
API version: 1.19 (minimum version )
Go version: go1.4.2
Git commit: 786b29d/1.7.1
Built:
OS/Arch: linux/amd64
Experimental: false

測試ok

docker報Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)