yum install Docker on CentOS6.x
1. Because docker requires service CentOS6 or above, the kernel version must be 2.6.32-431 or higher
//Check the centos version cat /etc/issue //View centos kernel version uname -r
2. Make sure your yum is up to date and update the yum program
yum update
3. Configure yum source
tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
4, yum install docker
yum install docker-engine
5. Start the docker service
service docker start
6. Check whether the docker service starts successfully
docker info
7. Configure the docker service to start automatically with the system
chkconfig docker on
The docker installation is complete!