Environmental requirements
Docker supports the following CentOS versions:
- CentOS 7 (64-bit)
- CentOS 6.5 (64-bit) or higher
The author's linux system here is the version of Centos 7.
Specific steps
1. Check the system version
Docker runs on CentOS 7, and requires the system to be 64-bit and the system kernel version to be 3.10 or above.
[root@VM_66_1_centos ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@VM_64_35_centos ~]# uname -r
3.10.0-514.26.2.el7.x86_64
2. Install docker
CentOS7 system CentOS-Extras library already has Docker, which can be installed directly:
[root@VM_66_1_centos ~]# yum install docker
Start the Docker service after installation and let it load automatically with system startup.
[root@VM_66_1_centos ~]# service docker start
[root@VM_66_1_centos ~]# chkconfig docker on
3. Verify whether it is successful
Use the following command to check whether the docker process is started
[root@VM_66_1_centos ~]# ps -aux | grep docker