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

因为我需要更新版本的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,但似乎没有任何作用。

最佳答案

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

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

https://stackoverflow.com/questions/36186848/

相关文章:

docker - 重新启动docker daemon后无法启动某些容器

docker - 由 Docker 复制的文件被视为目录

docker - pkgProblemResolver::Resolve生成的中断,这可能是由保留的

docker - Docker yum安装问题-无法为存储库检索metalink:epel/x86_

docker - Docker Compose YAML版本1和版本2有什么区别?

docker - dnsmasq 跨 docker 容器的奇怪行为

postgresql - 使用Docker容器和主机LAN的Postgres网络

jenkins - 使用具有马拉松和Mesos的持久卷在docker内部运行jenkins的权限错误

amazon-web-services - 前端和后端应用程序的 Docker 示例

macos - Docker-Machine坚持创建默认值