Error code:

client and
 server don't have same version (client : 1.19
, server: 1.18) docker-compose up -d returned exit
 code 1

Error reason:

$ docker version

Client version: 1.6
.2-circleciClient API version: 1.18
Go version (client): go1.4.2
Git commit (client): 2
f3236dOS/Arch (client): linux/amd64
Server version: 1.6
.2-circleciServer API version: 1.18
Go version (server): go1.4.2
Git commit (server): 2
f3236dOS/Arch (server): linux/amd64

Solution: requirements.txt

docker-compose<=1.3

Explanation

At present, the docker-compose version has been upgraded to 1.3.3+, and the Docker remote api version it relies on is 1.19+. However, CircleCI’s Docker version is still 1.6.2, which only supports Docker remote api up to 1.18. As a result, the client and server end up with mismatched capabilities.

The solution is to explicitly require that the docker-compse’s (i.e., docker-compose) version must not exceed 1.3.