travis-ci / travis-ci

Free continuous integration platform for GitHub projects.
https://travis-ci.org
8.41k stars 724 forks source link

Upgrade docker to 1.10 or 1.11 #6020

Closed Vanuan closed 6 years ago

Vanuan commented 8 years ago

Looks like I can't use travis installed version of docker:

ERROR: The Docker Engine version is less than the minimum required by Compose. 
Your current project requires a Docker Engine of version 1.10.0 or greater.
BanzaiMan commented 8 years ago

Until we roll out a build environment update, on Trusty, you can use sudo to update Docker.

Vanuan commented 8 years ago

Yeap, it worked: https://github.com/Vanuan/jspm-cli/blob/docker/.travis.yml

Vanuan commented 8 years ago

Would be great to have a shorter syntax like this:

docker:
  engine-version: 1.11.1
  compose-version: 1.7.0
  composefile:
    global:
      - docker-compose.yml 
    matrix:
      - compose/node-4.yml
      - compose/node-6.yml

So that by default it's executed like this:

docker-compose -f docker-compose.yml -f compose/node-4.yml build
docker-compose -f docker-compose.yml -f compose/node-4.yml up

and this

docker-compose -f docker-compose.yml -f compose/node-6.yml build
docker-compose -f docker-compose.yml -f compose/node-6.yml up
bkuhl commented 7 years ago

As of today it looks like Travis-CI is now using Docker 1.12 - see https://travis-ci.org/zopanix/docker_factorio_server#L246

schmunk42 commented 6 years ago

Nowadays I need to do this (to get docker 17.10)

before_install:
  - sudo apt-get update
  - sudo apt-get install docker-ce

I think this ticket can be closed, maybe a note can be added to the docs for those edge-cases.

BanzaiMan commented 6 years ago

https://docs.travis-ci.com/user/docker/#Installing-a-newer-Docker-version

I'm closing this.

edmorley commented 6 years ago

In case it helps anyone here - the current trusty images (group: stable) already come with docker-ce 17.03.1-ce, and travis-ci/travis-cookbooks#928 has just updated master to 17.09.0-ce (usable via group: edge for sudo: required jobs - if you're fine with increased chance of periodic breakage in exchange for saving the time spent manually installing the newer version).

edmorley commented 6 years ago

usable via group: edge for sudo: required jobs

Correction: it appears that whilst group: edge is more up to date than group: stable, it's not as new as master, since it's instead using docker 17.06.1-ce.

I've opened travis-ci/docs-travis-ci-com#1539 for documenting what each of the groups maps to.