Use Docker 1.6.2 on CircleCI

2015-07-08

When using Docker on CircleCI, by default you can only use Docker 1.4.1 which is already pretty outdated. As confirmed by the CircleCI support, since some days you get more and more 4xx error when pulling from the official Docker registry. But there is a simple trick, to upgrade to Docker 1.6.2. See the following example CircleCI configuration file:

1
2
3
4
5
6
7
8
9
10
# circle.yml
machine:
pre:
- sudo curl -L -o /usr/bin/docker 'http://s3-external-1.amazonaws.com/circle-downloads/docker-1.6.2-circleci'; sudo chmod 0755 /usr/bin/docker; true
services:
- docker

test:
pre:
- docker pull busybox

Now you are running the official CircleCI Docker 1.6.2 build.


Comments: