Install Docker under CentOS6.8

The original article link https://www.cnblogs.com/baolong/p/5743420.html .

Since I opened the linux terminal command line on the virtual machine installed by myself and entered uname -a and cat /etc/redhat-release and found that it was the same, the reference installation was successful. Thank you very much for sharing this.

1 Prerequisites for installing docker 

Currently, CentOS only supports Docker in the kernel in the release version.

Docker runs on CentOS 7 and requires a 64-bit system and a system kernel version of 3.10 or above.

Docker runs on CentOS-6.5 or higher, and requires a 64-bit system and a system kernel version of 2.6.32-431 or higher.

2 Check the version number of the system

[root@bogon ~]# uname -a
Linux bogon 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@bogon ~]# cat /etc/redhat-release
CentOS release 6.8 (Final)

3 Install EPEL

Because there is no docker in the repo that comes with the system, you need to install epel//I don't understand what it means. . . . So Baidu:

    EPEL  (Extra Packages for Enterprise Linux) is a Fedora-based project that provides additional software packages for "Red Hat" operating systems , suitable for RHEL, CentOS and Scientific Linux. That is, there is no docker installation package in your own system warehouse, you need With the help of epel, you must first install it [personal understanding].

[root@bogon ~]# rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm

4 Install Docker

[root@bogon ~]# yum install -y docker-io

5 Boot and start Docker

[root@bogon yum.repos.d]# service docker start
Starting cgconfig service:                                 [  OK  ]
Starting docker:                                       [  OK  ]
[root@bogon yum.repos.d]# chkconfig docker on
[root@bogon yum.repos.d]# chkconfig docker --list
docker          0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@bogon yum.repos.d]#

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324466522&siteId=291194637