This article originates from http://www.cnblogs.com/scoter2008
1. Powerful official documents
https://docs.docker.com/engine/installation/linux/centos/
2, according to the steps, first update the Yum source, here with 163 of the source
Yum install-y wgetcd/etc/yum.repos.dwget Http://mirrors.163.com/.help/CentOS7-Base-163.repo/usr/bin/yum clean all/ Usr/bin/yum Makecache Other system comes with the source can be preserved, also can kill all
3. Update the System
Yum Update
4, if you encounter problems: Delta RPMs disabled because/usr/bin/applydeltarpm not installed.
Yum Install-y deltarpm
5. Edit the Yum source file that generated Docker
Tee/etc/yum.repos.d/docker.repo <<-' EOF ' [Dockerrepo]name=docker repositorybaseurl=https:// Yum.dockerproject.org/repo/main/centos/7/enabled=1gpgcheck=1gpgkey=https://yum.dockerproject.org/gpgeof
6. Installing Docker
Yum Install Docker-engine
7, if you encounter problems:Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm is not installed,执行下面的命令
RPM--import HTTPS://YUM.DOCKERPROJECT.ORG/GPG
8, Docker download speed is very slow, please wait patiently
9, after the installation is complete, set the start-up
Systemctl Enable Docker.service
10. Start the Docker daemon
Systemctl Start Docker
11. View the Docker version
[[email protected] ~]# Docker versionclient:version: 1.12.3 API Version: 1.24 Go version: go1.6.3 Git Commit : 6b644ec Built: os/arch: linux/amd64server:version: 1.12.3 API version: 1.24 Go version: go1.6.3 Git Commit: 6b644ec Built: os/arch: linux/amd64
12, Done,enjoy it!
CentOS 7.2 Installs Docker version 1.12.3