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