安装Travis构build版本的docker-engine后期版本

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

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

但是,构build遇到提示:

 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 ,这似乎没有做任何事情。

确保您使用的是正确的Travis CI环境, Trustytesting版环境 。

然后在这里看到Travis文档来更新你的Docker Compose 。