安装更高版本的docker-engine卡在Travis构建上

时间:2016-03-23 19:16:08

标签: docker install automated-tests build-automation travis-ci

因为我需要更新版本的docker-compose,我还需要更新版本的docker-engine。我试过了:

before_install:
  - sudo apt-get install -qq docker-engine

但是,构建会在提示符下停留:

Configuration file '/etc/default/docker'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** docker (Y/I/N/O/D/Z) [default=N] ? 

如何保持旧版本不受阻塞? (或者我应该接受新版本?我猜Travis CI正在做一些事情......)

我先尝试sudo apt-get remove -qq docker-engine,但似乎没有做任何事情。

1 个答案:

答案 0 :(得分:0)

确保您使用正确的Travis CI环境Trusty beta environment

然后查看updating your Docker Compose here的Travis文档。