From 7fc1ca0733a5e0c73a761175bc324dbf9fc2d9e1 Mon Sep 17 00:00:00 2001 From: Baohua Yang Date: Fri, 12 Sep 2014 15:37:21 +0800 Subject: [PATCH] split the installation to two main distributions --- install/centos.md | 4 ++-- install/ubuntu144.md | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/install/centos.md b/install/centos.md index 0e5481d..bf8d9c1 100644 --- a/install/centos.md +++ b/install/centos.md @@ -1,4 +1,4 @@ -##centos6\7系列安装docker +##centos6/7系列安装docker 使用EPEL软件仓库可以安装docker,版本必须在centos6 以后 如果是centos6,用下面的命令安装 @@ -21,4 +21,4 @@ yum remove docker-io ``` $ service docker start $ chkconfig docker on -``` \ No newline at end of file +``` diff --git a/install/ubuntu144.md b/install/ubuntu144.md index 774c927..671c52f 100644 --- a/install/ubuntu144.md +++ b/install/ubuntu144.md @@ -13,19 +13,18 @@ $ sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io ###通过docker源安装最新版本 如果要安装最新的docker版本,那么需要安装apt-get的https支持 ``` -$apt-get install apt-transport-https +$ sudo apt-get install apt-transport-https $ 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 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 ``` ###其它版本 -如果是低版本的ubuntu +如果是低版本的ubuntu需要先更新内核。 ``` $ sudo apt-get update $ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring -# reboot $ sudo reboot ``` 然后重复上面的步骤即可。