Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issues with docker-compose up

Whenever I am trying to run docker-compose up it shows the below error related to a version mismatch of client and server.

client and server don't have same version (client : 1.19, server: 1.18)

Below are the installed versions of docker-compose and docker itself. Neither docker, nor docker-compose have 1.19 and 1.18 versions. So actually this message is referring to which client and server?

[root@node1 composetest]# docker -v
Docker version 1.6.2, build 7c8fca2/1.6.2
[root@node1 composetest]# docker-compose up
client and server don't have same version (client : 1.19, server: 1.18)

Further how to fix this issue. I am using centos 6 and have upgraded the docker to latest version.I had installed docker-compose using pip.

like image 722
thinkingmonster Avatar asked Feb 10 '23 08:02

thinkingmonster


1 Answers

As of docker-compose 1.4 you can now set the client API version, so you don't have to downgrade the client, or upgrade the server.

Set the environment variable COMPOSE_API_VERSION=auto to have it auto-detect the client version, or COMPOSE_API_VERSION=1.18 to set the exact version.

like image 93
dnephin Avatar answered Feb 13 '23 04:02

dnephin