-
Notifications
You must be signed in to change notification settings - Fork 20
Support newer version of docker-compose #5
Comments
Any updates to this? version 2 compose files contain features which I need for my project to run and I would imagine more and more version 2 files will come while version 1 files are slowly being phased out. |
i also agree. need version 2 to specify image name in the build (unless someone knows how to specifically define image name in version 1 compose files that would be of great help). |
I found a solution thanks to @adrien-dong 👍 . In your circle.yml :
The versions should be :
|
Hi @ygotthilf Are you using version 2 compose files? I tried your suggestion but now it is not compatible with the engine version which is keeps failing to upgrade |
Great stuff @ygotthilf but unfortunately caching docker layers does not work with 1.10... Issue: moby/moby#20380 |
I applied @ygotthilf 's workaround and it worked for a while, but then all of a sudden it doesn't work. Has anyone bump into this problem again? All of a sudden the workaround doesn't update docker compose:
|
I just fixed this in our app this morning. Replace - curl -L https://github.com/docker/compose/releases/download/1.10.0/docker-compose-`uname -s`-`uname -m` > /home/ubuntu/bin/docker-compose
- chmod +x /home/ubuntu/bin/docker-compose
- docker-compose version I went with |
Thanks @ryansch, we just started seeing that error here too, and your suggestion fixed it for us. |
FYI if you ran into docker-compose.yml version issue in the past day or so. https://discuss.circleci.com/t/docker-compose-version-change/9685 |
I went with this:
Then when I try to run
|
- circle.yml: now that the tasks for the tests exist, let's make circle actually run them - tasks.py: added linefeeds to make flake8 shut up. ;), Docstring too. - circle.yml: work around broken circleci docker-compose - tasks.py: debug the link step - circle's version of docker-compose doesn't support the version "2" syntax in docker-compose.test.yml. Using a hint found here: circleci/docker#5, we are able to load a newer version of docker-compose into a location earlier in the path that allows the build to complete with a newer version of docker-compose. Fix errors coming from removing btrfs root volumes in docker builds - tasks.py: attempting to fix moby/moby#22547 via https://circleci.com/docs/1.0/docker-btrfs-error/; explicitly set rm=false - tasks.py: eventually, remove the rm completely to fix moby/moby#22547; successful fix - rather than linking the file, it makes more sense (and works better) to copy the file into place where the fs expects it to be. All attempts to do this with linking fail, cp /tmp works. Remove debugging statements.
- circle.yml: now that the tasks for the tests exist, let's make circle actually run them - tasks.py: added linefeeds to make flake8 shut up. ;), Docstring too. - circle.yml: work around broken circleci docker-compose - tasks.py: debug the link step - circle's version of docker-compose doesn't support the version "2" syntax in docker-compose.test.yml. Using a hint found here: circleci/docker#5, we are able to load a newer version of docker-compose into a location earlier in the path that allows the build to complete with a newer version of docker-compose. Fix errors coming from removing btrfs root volumes in docker builds - tasks.py: attempting to fix moby/moby#22547 via https://circleci.com/docs/1.0/docker-btrfs-error/; explicitly set rm=false - tasks.py: eventually, remove the rm completely to fix moby/moby#22547; successful fix - rather than linking the file, it makes more sense (and works better) to copy the file into place where the fs expects it to be. All attempts to do this with linking fail, cp /tmp works. Remove debugging statements.
for those reaching here in 2021, the easier way to install compose is adding the following two lines after the first line (version 2.1):
Then on each job, there should be a step with just (without run):
|
This not working for me.. This error appears:
|
check this: |
Currently only docker-compose 1.5.0 or older will work with the installed version of docker. This means version 2 of the
docker-compose.yml
format is incompatible with circle ci.The text was updated successfully, but these errors were encountered: