Verify that the installation is successful (there are two parts, client and service, indicating that the docker installation and startup are successful) 1. Check the kernel version, and the returned value can be greater than 3.10.
uname –r
2. Make sure yum is up to date
yum update
3. Add yum repository
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
3. Confirm that no older version of docker is installed\install docker
docker version
After the installation is successful, use the docker version command to check whether the installation is successful. After the installation is successful - as shown below
4. Start docker
systemctl start docker.service
Verify that the installation is successful (there are two parts, client and service, indicating that the docker installation and startup were successful)
systemctl enable docker #Set boot auto-start