I have created some integration tests for my open-sourced code and I am looking for a publicly accessible CI service to host them. As Travis-CI has to small quotas for all my containers, I think I will use CircleCI. This is my cirle.yml
:
machine:
services:
- docker
dependencies:
override:
- pip install docker-compose
test:
override:
- cd integration-tests && docker-compose run --rm runner
However after running this I get error message "client and server don't have same version (client : 1.18, server: 1.16)" What is my problem?
you can do this by using
--net=host
when running your container, this will allow you to access Circle CI services vialocalhost
. With this you don't need to usedocker-compose
. Circle CI provides most services for you.With extensive help of Support and some trial and error I found two problems with my configuration:
The correct configuration therefore will look like this:
@zefciu This config just worked for me
UPDATE: It's not needed anymore, CircleCI has Docker v1.8.2 by default now
You can update docker version like this:
You can replace
1.8.2
in the amazon S3 link to the version you want