Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable container, and then publish it to any popular Linux machine or virtualization. Containers are completely using the sandbox mechanism, and there will be no interface between each other.
1. Strong official documents
https://docs.docker.com/engine/installation/linux/centos/
2, according to the steps, first update Yum source, here with 163 of the source
Yum install-y wget
cd/etc/yum.repos.d
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
Bin/yum Clean all
/usr/bin/yum Makecache
Other systems with their own source can be retained, or all can be killed
3, update the system
4, if you encounter problems: Delta RPMs disabled because/usr/bin/applydeltarpm not installed.
5, edit the generation of Docker Yum source files
Tee/etc/yum.repos.d/docker.repo <<-' EOF '
[Dockerrepo]
name=docker Repository
baseurl=https:// yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https:// YUM.DOCKERPROJECT.ORG/GPG
EOF
6. Installation Docker
Yum Install Docker-engine
7. If you encounter a problem: Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm are not installed, execute the following command
RPM--import HTTPS://YUM.DOCKERPROJECT.ORG/GPG
8, Docker download speed is very slow, please wait patiently
9, after installation, set the boot up
Systemctl Enable Docker.service
10, start the Docker daemon process
11, view Docker version
[Root@localhost ~]# Docker version
Client:
version:1.12.3
API version:1.24
Go version:go1.6.3
Git COMMIT:6B644EC
Built:
Os/arch:linux/amd64
Server:
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!