Docker Error response from daemon: client is newer than server

在执行docker pull的时候出现如下错误

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

docker version

Client:
 Version:      17.06.0-ce
 API version:  1.24 (downgraded from 1.30)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:31:53 2017
 OS/Arch:      darwin/amd64
Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

解决方法1 :升级服务端docker api version

 docker-machine upgrade

如果使用boot2docker需要执行

boot2docker upgrade

解决方式2:使用dvm管理本地的docker API

dvm安装方式参加https://carolynvs.github.io/dvm/install.html

安装和服务器版本相同的API

dvm install 1.9.0
dvm use 1.9.0                                                                                                                            dvm ls                                                                                                                                   

你可能感兴趣的:(docker)