Reputation: 1719
Here is a very similar question. But the problem is that some people said that docker version is too old, some people said that docker version is not old enough. My question is that after I checked the version of my docker and docker-compose, I cannot find version 1.21 which is reported by the ERROR. Where can I find it?
I am trying to run Crystalnix/omaha-server.
I followed the steps:
$ sudo apt-get update
$ sudo apt-get install docker.io
$ sudo apt-get install python-paver python-pip
$ sudo pip install -U docker-compose
$ git clone https://github.com/Crystalnix/omaha-server.git
$ cd omaha-server
$ sudo paver up_local_dev_server
Then I received error:
docker-compose -f docker-compose.dev.yml -p dev up -d db
ERROR: client and server don't have same version (client : 1.21, server: 1.18)
From Srini Koganti's Answer, I found that the error may be caused by docker API version used by docker-compose being higher than that that of docker daemon listening to serve.
Then I check:
docker-compose --version
docker-compose version 1.13.0, build 1719ceb
Also:
docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.2.1
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
I can found the version 1.21 nowhere, so what is the cause of this problem? And how to fix it?
Upvotes: 1
Views: 2183
Reputation: 5027
You have to upgrade your Docker version, since you have a really old version.
The easiest way to install last Docker Engine version is using official installation script of Docker.
To do this, you only have to execute this command, which will retrieve and execute the script.
wget -qO- https://get.docker.com/ | sh
Upvotes: 1