Linux中CentOS6.5 64位 系统下安装docker步骤

CentOS6.5 64位    (docker目前仅支持64位)
内核必须在3.10及以上

1. uname -r  查看内核版本

2. 升级内核到3.10版本(带aufs模块)
    cd /etc/yum.repos.d
    wget http://www.hop5.in/yum/el6/hop5.repo
    yum install kernel-ml-aufs kernel-ml-aufs-devel
    
3. vi /etc/grub.conf   
查看是否default=0,不是就改为0。

4.  reboot 系统重启  
    uname -r  再次查看内核版本

5.   查看内核是否支持aufs
    grep aufs /proc/filesystems
返回 : nodev aufs  正常。

6.   安装docker
   a. 首先关闭selinux:
        setenforce 0
        sed -i '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config   
   b.  下载安装epel:
        yum install -y epel-release      //安装扩展源epel
        sed -i 's/^mirrorlist=https/mirrorlist=http/' /etc/yum.repos.d/epel.repo
   c.  安装docker-io
        yum -y install docker-io

   d.   启动docker
        service docker start
   e.   版本号查看
        docker --version
   f.   查看docker日志
        cat /var/log/docker

其他命令,参考官方文档:https://docs.docker.com/get-started/#test-docker-version

安装在linux上的docker命令 : https://www.cnblogs.com/lori/p/6680380.html

学习参考 :http://www.cnblogs.com/lori/p/7193641.html












        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

原文地址:https://www.cnblogs.com/smileblogs/p/9545656.html