我正在尝试运行docker和docker-compose的最新稳定版本。
我正在按照https://docs.docker.com/engine/installation/linux/ubuntulinux/上的说明进行操作
显然,docker-compose的当前版本是1.7。
但是,在阅读了文档并安装docker-engine之后,我得到了:
$ docker-compose --version docker-compose version: 1.4.0
和
$ docker --version Docker version 1.11.1, build 5604cbe
当我尝试更新它时,得到以下信息:
$ sudo apt-get upgrade docker-engine Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... docker-engine is already the newest version. Done
更新资料
这只会变得越来越陌生。在尝试了以下所有建议之后,我现在得到了:
$ docker-compose -v The program 'docker-compose' is currently not installed. You can install it by typing: sudo apt-get install docker-compose anton@Charles:~$ sudo apt-get install docker-compose Reading package lists... Done Building dependency tree Reading state information... Done docker-compose is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
那我该如何更新Docker?
试试这个东西:
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list" sudo aptitude update sudo aptitude install lxc-docker
如果这不起作用,请通过第三方进行:
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo apt-get update $ sudo apt-get install lxc-docker