docker-swarm错误:客户端和服务器没有相同的版本(客户端:1.18,服务器:1.17)

时间:2015-03-27 06:13:23

标签: docker boot2docker docker-swarm

我一直在尝试用机器运行docker swarm。我使用virtualbox作为提供者。我能够生成三个VM并将它们作为swarm-master,swarm-node-00和swarm-node-01运行。但我无法使用我的群集群。以下是一些其他信息:

[peeyush@localhost swarm]$ docker-machine_linux-amd64 ls
NAME ACTIVE DRIVER STATE URL SWARM
dev virtualbox Running tcp://192.168.99.100:2376

swarm-master virtualbox Running tcp://192.168.99.101:2376 swarm-master (master)
swarm-node-00 virtualbox Running tcp://192.168.99.100:2376 swarm-master
swarm-node-01 * virtualbox Running tcp://192.168.99.102:2376 swarm-master
[peeyush@localhost swarm]$ eval "$(docker-machine_linux-amd64 env swarm-master)"
[peeyush@localhost swarm]$ docker info
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.18, server: 1.17)

[peeyush@localhost swarm]$ docker version
Client version: 1.5.0-dev
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 831c796
OS/Arch (client): linux/amd64
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.18, server: 1.17)

你能帮我解决一下这个问题吗?

1 个答案:

答案 0 :(得分:1)

Docker机器在~/.docker/machine/cache/

下保留boot2docker镜像的本地副本

您可以升级运行此命令的本地副本:

docker-machine upgrade

您还可以使用参数--virtualbox-boot2docker-url强制docker machine使用另一个boot2docker镜像。

有关详细信息,请参阅虚拟机驱动程序文档:https://docs.docker.com/machine/#oracle-virtualbox