Docker当前发布的最新版本已经到了1.11,其官网上针对Centos的的安装需求如下:

Docker requires a -bit installation regardless of your CentOS version. Also, your kernel must be 3.10 at minimum, which CentOS  runs.

看来如果我们想在低于3.x内核的操作系统(比如Centos6.7)上装Docker最新版,势必要升级内核了。且不说升级内核步骤繁琐、容易出错,单就这种比较怪异的搭配:Centos6.x + Kerneol3.X + Docker1.11,就没有人能够保证其稳定性。故我的建议是设法在Centos6.7上安装较低版本的Docker。事实上,对于内核版本要大于3.10这个要求,是从Docker1.8.2版本开始的,Docker之前的版本是可以运行在较低内核版本之上的,比如1.7.1。

  

  首先,看下我的操作环境以及直接安装Docker的现象:

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.-.el6.x86_64 # SMP Thu Jul :: UTC x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@localhost ~]# docker
-bash: docker: command not found
[root@localhost ~]# yum install docker
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
base | 3.7 kB :
base/primary_db | 4.6 MB :
extras | 3.4 kB :
extras/primary_db | kB :
updates | 3.4 kB :
updates/primary_db | 5.2 MB :
No package docker available.
Error: Nothing to do
[root@localhost ~]# yum install docker-io
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Determining fastest mirrors
* base: mirrors.zju.edu.cn
* extras: mirrors.skyshe.cn
* updates: mirrors.zju.edu.cn
No package docker-io available.
Error: Nothing to do

可以看到,在Centos6.7的标准yum源中已经没有Docker的安装包了,这时,我们需要安装EPEL。

  EPEL(Extra Packages for Enterprise Linux),企业版Linux额外包,RHEL分布非标准包的社区类库。安装如下:

[root@localhost ~]# rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.sA7VqQ: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [%]
:epel-release ########################################### [%]

  

  接下来安装Docker1.7.1,在1.7.1中,安装包名称为docker-io,故我们的安装命令如下:

[root@localhost ~]# yum install docker-io
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 5.3 kB :
* base: mirrors.zju.edu.cn
* epel: ftp.cuhk.edu.hk
* extras: mirrors.skyshe.cn
* updates: mirrors.zju.edu.cn
epel | 4.3 kB :
epel/primary_db | 5.9 MB :
Resolving Dependencies
--> Running transaction check
---> Package docker-io.x86_64 :1.7.-.el6 will be installed
--> Processing Dependency: lxc for package: docker-io-1.7.-.el6.x86_64
--> Processing Dependency: libcgroup for package: docker-io-1.7.-.el6.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 :0.40.rc1-.el6_7 will be installed
---> Package lxc.x86_64 :1.0.-.el6 will be installed
--> Processing Dependency: lua-lxc(x86-) = 1.0.-.el6 for package: lxc-1.0.-.el6.x86_64
--> Processing Dependency: lua-alt-getopt for package: lxc-1.0.-.el6.x86_64
--> Processing Dependency: liblxc.so.()(64bit) for package: lxc-1.0.-.el6.x86_64
--> Running transaction check
---> Package lua-alt-getopt.noarch :0.7.-.el6 will be installed
---> Package lua-lxc.x86_64 :1.0.-.el6 will be installed
--> Processing Dependency: lua-filesystem for package: lua-lxc-1.0.-.el6.x86_64
---> Package lxc-libs.x86_64 :1.0.-.el6 will be installed
--> Running transaction check
---> Package lua-filesystem.x86_64 :1.4.-.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved ===================================================================================
Package Arch Version Repository Size
===================================================================================
Installing:
docker-io x86_64 1.7.-.el6 epel 4.6 M
Installing for dependencies:
libcgroup x86_64 0.40.rc1-.el6_7 updates k
lua-alt-getopt noarch 0.7.-.el6 epel 6.9 k
lua-filesystem x86_64 1.4.-.el6 epel k
lua-lxc x86_64 1.0.-.el6 epel k
lxc x86_64 1.0.-.el6 epel k
lxc-libs x86_64 1.0.-.el6 epel k Transaction Summary
====================================================================================
Install Package(s) Total download size: 5.1 M
Installed size: M
Is this ok [y/N]: y
Downloading Packages:
(/): docker-io-1.7.-.el6.x86_64.rpm | 4.6 MB :
(/): libcgroup-0.40.rc1-.el6_7.x86_64.rpm | kB :
(/): lua-alt-getopt-0.7.-.el6.noarch.rpm | 6.9 kB :
(/): lua-filesystem-1.4.-.el6.x86_64.rpm | kB :
(/): lua-lxc-1.0.-.el6.x86_64.rpm | kB :
(/): lxc-1.0.-.el6.x86_64.rpm | kB :
(/): lxc-libs-1.0.-.el6.x86_64.rpm | kB :
----------------------------------------------------------------------------------------------
Total kB/s | 5.1 MB :
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL () <epel@fedoraproject.org>
Package: epel-release--.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS- Key (CentOS Official Signing Key) <centos--key@centos.org>
Package: centos-release--.el6.centos.12.3.x86_64 (@anaconda-CentOS-.x86_64/6.7)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : lxc-libs-1.0.-.el6.x86_64 /
Installing : lua-filesystem-1.4.-.el6.x86_64 /
Installing : lua-lxc-1.0.-.el6.x86_64 /
Installing : lua-alt-getopt-0.7.-.el6.noarch /
Installing : lxc-1.0.-.el6.x86_64 /
Installing : libcgroup-0.40.rc1-.el6_7.x86_64 /
Installing : docker-io-1.7.-.el6.x86_64 /
Verifying : lxc-libs-1.0.-.el6.x86_64 /
Verifying : libcgroup-0.40.rc1-.el6_7.x86_64 /
Verifying : lua-lxc-1.0.-.el6.x86_64 /
Verifying : lxc-1.0.-.el6.x86_64 /
Verifying : docker-io-1.7.-.el6.x86_64 /
Verifying : lua-alt-getopt-0.7.-.el6.noarch /
Verifying : lua-filesystem-1.4.-.el6.x86_64 / Installed:
docker-io.x86_64 :1.7.-.el6 Dependency Installed:
libcgroup.x86_64 :0.40.rc1-.el6_7
lua-alt-getopt.noarch :0.7.-.el6
lua-filesystem.x86_64 :1.4.-.el6
lua-lxc.x86_64 :1.0.-.el6
lxc.x86_64 :1.0.-.el6
lxc-libs.x86_64 :1.0.-.el6 Complete!
[root@localhost ~]# docker -v
Docker version 1.7., build 786b29d/1.7.

安装完成!

Centos6.7安装docker1.7.1的更多相关文章

  1. 1.centos6.8安装docker

    简介环境安装依赖安装步骤1.删除旧版本的docker2.安装docker2.1 yum安装docker2.2 tar安装2.3 在线脚本事实证明以上的安装方式都行不通 参考文档:https://doc ...

  2. vmware Centos6.6安装64位

    Centos6.6安装64位 必须开启BIOS中的虚拟化技术 首先开机进入BIOS,一般机器是按F2,我的T420是按F1,然后进入Security,Virtualization,选择Enable即可 ...

  3. Gitlab完美安装【CentOS6.5安装gitlab-6.9.2】

    摘要: 拆腾了几天,终于在今天找到了快速安装Gitlab的方法.CentOS6.5安装gitlab-6.9.2 参考网址:https://gitlab.com/gitlab-org/omnibus-g ...

  4. CentOS6.5安装Tomcat

    安装说明 安装环境:CentOS-6.4 安装方式:源码安装 软件:apache-tomcat-7.0.56.tar.gz 下载地址:http://tomcat.apache.org/download ...

  5. Centos6 yum安装openldap+phpldapadmin+TLS+双主配置

    原文地址:http://54im.com/openldap/centos-6-yum-install-openldap-phpldapadmin-tls-%E5%8F%8C%E4%B8%BB%E9%8 ...

  6. centos6.5安装oracle11g_2

    centos7安装oracle数据库不成功,换成centos6.5安装,可以安装成功,记录一下 安装系统时,主机名如果不是用localhost,安装成功后,要用主机名和ip做映射,修改/etc/hos ...

  7. CentOS6.6安装vmware workstation报错

    本人系统用的是centos6.6,安装了vmware workstation,启动后一直如下图报错,相关内核已经安装了的,哪位前辈如果解决过这样的问题,麻烦指点指点,小弟在此先谢过了.

  8. CentOS6.6安装virtualbox4.1.44

    本人用的是centos6.6,安装了virtualbox 4.1.44,启动后一直如上图报错,哪位前辈如果解决过这样的问题,麻烦指点指点,小弟在此先谢过了.

  9. [转]CentOS-6.3安装配置cmake

    CentOS-6.3安装配置cmake   zhoulf 2013-02-03 原创 安装说明 安装环境:CentOS-6.3安装方式:源码编译安装 软件:cmake-2.8.10.2.tar.gz下 ...

随机推荐

  1. Linux_linux中profile、bashrc、bash_profile之间的区别和联系(转)

    /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置. 英文描述为: # /etc/p ...

  2. Odoo attrs X2many 类型的过滤

    有童鞋在群里问到 attrs 中的 many2many类型的字段该如何进行domain过滤,其实非常简单: Many2many的字段在js中获取的值的格式为[[6,false,[]]] 所以attrs ...

  3. Linux_shell脚本_遍历文件夹下所有文件

    参考:lunar1983的专栏 实现:从给定目录树中grep出含制定字符串的行,并给出所在路径 代码如下所示: #!/bin/sh - if [ $# -ne 2 ] then echo " ...

  4. 房间安排-nyoj168

    描述 2010年上海世界博览会(Expo2010),是第41届世界博览会.于2010年5月1日至10月31日期间,在中国上海市举行.本次世博会也是由中国举办的首届世界博览会.上海世博会以“城市,让生活 ...

  5. C++ 画星号图形——空心正方形(核心代码)

    //输出m行m列的空心正方矩形. int m;//m用来控制行列数. cout<<"请输入要打印的行列数n(n>=4):\n"; cin>>m; ;i ...

  6. Code Snippet

    Code Snippet: http://msdn.microsoft.com/en-us/library/z41h7fat.aspx CodePlex.Snippets 4.0 - Visual S ...

  7. linux多核cpu下的负载查看

    linux下使用top命令或uptime命令 单核cpu下,负载超过0.7即意味着瓶颈,多核cpu下按核数*0.7计算负载 如2核,1.4可能即意味着负载较吃力了 查看核数 grep 'model n ...

  8. [daily][troubleshoot][archlinux][wps][font] wps文档中的图内容无法显示中文

    序 用linux作为工作生产环境的几个需要解决的问题之一是:文档协作,即如何兼容Micro$oft Office格式的文档. 我一般的工作方式是:在linux下创建一个win7的虚拟机,安装常用的wi ...

  9. Hadoop离线项目介绍(不包括程序)

    一:项目场景 1.需求分析 根据用户行为数据进行程序的处理,得到结果保存到关系型数据库中 需要收集用户(系统使用者)在不同客户端上产生的用户行为数据,最终保存到hdfs上 需要明确收集字段的相关信息, ...

  10. js 十分精确身份证验证

    checkIdcard:function (idcard) { // 1 "验证通过!", 0 //身份证号码校验错误 var Errors = new Array( " ...