在Ubuntu上升级Docker后出现的问题


我的系统是Ubuntu14.04 原来是Docker1.6 现在升级为Docker 1.7

uname -a

Linux whw-virtual-machine 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

我的看的是官方的upgrade 的方法: https://docs.docker.com/installation/ubuntulinux/
Upgrade Docker
To install the latest version of Docker with wget:
$ wget -qO- https://get.docker.com/ | sh

结果显示报错:
Error response from daemon: client and server don't have same version (client : 1.19, server: 1.18)
已邀请:

yaoguo

赞同来自: jamesmarva


找一下你两个版本的docker安装目录,以前遇到过是因为安装目录修改了,结果PATH中有两份docker bin。另外重启下docker daemon。

-狐狸尾巴

赞同来自:


sudo apt-get install apt-transport-https

Add the Docker repository key to your local keychain

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

Add the Docker repository to your apt sources list.

sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"

update your sources list

sudo apt-get update

之后通过下面命令来安装最新版本的docker:

apt-get install -y lxc-docker

要回复问题请先登录注册