Docker Compose version change

docker

#1

One of our build configs require docker compose, this has been version 2 syntax from the begining.
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.

As of today a build that was working 24 hours ago, is failing with incompatibility of the docker compose yml file.
Upon ssh’ing into the machine, the docker compose version is 1.5.2, where it should be 1.6, we are currently installing docker 1.10.0 via the aws link from the docs, and docker compose via pip.
Build 563 on our repo succeeds, but build 579 fails which is a rebuild of the same commit. Build 580 did succeed, so I am not sure if we are hitting different nodes that have not been updated as there is an inconsistency.

Any help / suggestions on this would be greatly appreciated.


#2

Also experiencing this issue. Builds that were successful yesterday now fail.
Debugging via SSH I find docker-compose is still at version 1.5.2 despite trying every which way to install 1.10.0 via pip.
pip show docker-compose shows 1.10.0 is installed.
What gives?


#3

We have builds failing with this too — need that docker-compose version bumped back up.

We’re all installing with curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 I assume?


#4

Same thing is happening with us here in the office.


#5

I’m installing it using pip, after debugging via an SSH login I saw that pip needed upgrading which seemed to make things work again for me. Also note I am using the 16.04 image (which now seems to be default) not 14.04

dependencies:
  pre:
    - pip install --upgrade pip
    - pip install docker-compose

#6

Yep that fixes


#7

In our case we had sudo pip install docker-compose.
Changing it to pip install docker-compose fixed the problem, so make sure you run all your commands without sudo.

Btw, I saw CircleCI updated Ubuntu 14.04 image recently. I see some updates on python but it doesn’t seems to be related. More info: Ubuntu 14.04 Build Image Update 201701-01

Edited: I don’t know if could be related with this change:

-      "virtualenv": "14.0.3"
+      "virtualenv": "15.1.0"

#8

It also did the trick for us. After upgrading pip, latest version of docker-compose can be use successfully


#9

i fixed it by adding “pyenv rehash” after pip install docker-compose

Looks like pyenv is sandboxed now (looks very similar to asdf)


#10

There is no 16.04 image. Can you clarify what you mean?


#11