1、要求

  • centos6.5中需要64位
  • centos6.5的linux内核需要3.x(centos的内核是2.6)

2、查看当前系统的位数和版本

[root@jacky jacky]# uname -r
2.6.32-431.el6.x86_64
[root@jacky jacky]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

说明当前版本是centos6.5 64位系统

3、 安装yum优先级插件

#yum installyum-priorities

4、 安装epel

# rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

5、查看是否安装epel成功

# rpm -q epel-release

6、导入key

# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

7、修改/etc/yum.repos.d/epel.repo文件,在最后添加一条属性 priority=11

# vim /etc/yum.repos.d/epel.repo

8、重建缓存

yum makecache

9、安装完成之后,确保yum list能找到Docker的相关rpm包

[root@jacky jacky]# yum list | grep docker
docker-io.x86_64 1.7.1-2.el6 @epel
docker.x86_64 1.5-5.el6 epel
docker-io-devel.x86_64 1.7.1-2.el6 epel
docker-io-fish-completion.x86_64 1.7.1-2.el6 epel
docker-io-logrotate.x86_64 1.7.1-2.el6 epel
docker-io-vim.x86_64 1.7.1-2.el6 epel
docker-io-zsh-completion.x86_64 1.7.1-2.el6 epel
fedora-dockerfiles.x86_64 0-0.12.gitf6cd84c.el6 epel
golang-github-docker-libcontainer.x86_64 1.1.0-10.gitdb65c35.el6 epel
golang-github-docker-libcontainer-devel.x86_64
golang-github-docker-libtrust-devel.noarch
golang-github-docker-libtrust-unit-test.x86_64
golang-github-docker-spdystream-devel.noarch
golang-github-docker-spdystream-unit-test.x86_64
golang-github-fsouza-go-dockerclient-devel.noarch
golang-github-fsouza-go-dockerclient-unit-test.x86_64
python-docker-py.x86_64 0.7.0-1.el6 epel
python-docker-registry-core.noarch 2.0.1-2.el6 epel
python-dockerfile-parse.noarch 0.0.5-1.el6 epel
[root@jacky jacky]#

10、升级内核

http://www.cnblogs.com/520playboy/p/7041819.html

11、安装docker

#yum install docker-io

12、更新device-mapper-libs

# yum upgrade device-mapper-libs

13、启动docker

[root@jacky jacky]# service docker service

14、设置docker开机自启动

#chkconfig docker on

15、测试

[root@jacky jacky]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

18、查看docker版本

[root@jacky jacky]# docker --version
Docker version 1.7.1, build 786b29d/1.7.1

安装成功

docker探索-在centos6.5中安装docker(三)的更多相关文章

  1. 【Docker】在Linux系统中安装Docker虚拟机、启动停止重启查看Docker命令

    安装Docker 文章目录 安装Docker Docker虚拟机架构 在Linux系统中安装Docker虚拟机 管理Docker虚拟机 参考资料 Docker虚拟机架构 Docker创建的所有虚拟实例 ...

  2. 在CentOS6.8下安装Docker

    在CentOS6.8下安装Docker 一.查看系统版本 [root@localhost opt]# uname -a Linux localhost.localdomain -.el6.x86_64 ...

  3. Docker - 在CentOS 7中安装Docker

    1-确认系统信息 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # uname -a Linux CentOS-7 3. ...

  4. ubuntu中安装Docker

    系统要求: 必须时64位的系统,内核最低要求是3.10 查看系统内核: $ uname -r 3.11.0-15-generic 获取最新版本打Docker: $ wget -qO- https:// ...

  5. 在deepin中安装docker

    用往常方法安装 一般在Linux中安装docker的时候都会使用这条命令 wget -qO- https://get.docker.com/ | sh 而在deepin这么做缺不行 打开网址即可发现支 ...

  6. Ubuntu 中安装 Docker

    检查 Device Mapper 是否存在 sch01ar@ubuntu:~$ ls -l /sys/class/misc/device-mapper 安装 Ubuntu 维护的版本 sch01ar@ ...

  7. 在Ubuntu中安装Docker和docker的使用

    1.在Ubuntu中安装Docker 更新ubuntu的apt源索引 sudo apt-get update 安装包允许apt通过HTTPS使用仓库 sudo apt-get install \ ap ...

  8. mac下idea中安装docker插件

    idea中安装docker插件: 点击Intellij IDEA->Preferences...->Plugins->Browse repositories...如下: 点击Inst ...

  9. Docker(一) - CentOS7中安装Docker - (视频教程)

    Docker的使用越来越多,安装也相对简单.本文使用视频的方式展示在CentOS7系统中安装Docker,本文更适合于准备入门学习Docker的童靴. 以下视频,请带上耳机开始聆听 (双击全屏播放) ...

随机推荐

  1. openssl的证书格式转换

    证书转换 PKCS 全称是 Public-Key Cryptography Standards ,是由 RSA 实验室与其它安全系统开发商为促进公钥密码的发展而制订的一系列标准,PKCS 目前共发布过 ...

  2. C#:Use Form as Subform

    static class SubFormExtensions { internal static bool AttachTo(this Form subForm, Panel panel) { if ...

  3. SlackWare安装

     Keep It Simple Stupid 01.下载 slackware: http://www.slackware.com/ 中科大:    http://mirrors.ustc.edu.cn ...

  4. 更安全的HTTPS

    iOS9把所有的http请求都改为https了:iOS9系统发送的网络请求将统一使用TLS 1.2 SSL.采用TLS 1.2 协议,目的是 强制增强数据访问安全,而且 系统 Foundation 框 ...

  5. 【LeetCode】48. Rotate Image (2 solutions)

    Rotate Image You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees ...

  6. VMware workstation 与 VMware GSX Server 的区别

    http://xsagaplus.iteye.com/blog/358917VMware是提供一套虚拟机解决方案的软件,主要产品分为如下三个. VMware-ESX-Server  这个版本并不需要操 ...

  7. web development blog(转)

    Top 10 jQuery Mobile Code Snippets that you need to know jQuery Mobile is a framework for mobile web ...

  8. 关于ftpshell脚本中mget中去除多余交互式提示的方法

    默认情况下ftp里面的交互式提示是开启的,平常如果下载多个文件时,这种提示很让人烦,如果是在shell脚本里面要从ftp服务器上一次mget多个文件,写个交互式很麻烦,最好是把这个交互式提示关掉. 进 ...

  9. 图解IIS配置过程

    环境介绍: 操作系统:win7,64位.IIS7 开发软件:VS2010,32位 图解IIS配置过程: 此过程之前确保已安装了IIS. 1.在"控制面板"中找到"管理工具 ...

  10. poj 3735 Training little cats(构造矩阵)

    http://poj.org/problem?id=3735 大致题意: 有n仅仅猫,開始时每仅仅猫有花生0颗,现有一组操作,由以下三个中的k个操作组成: 1. g i 给i仅仅猫一颗花生米 2. e ...