https://www.cnblogs.com/yufeng218/p/8370670.html
https://www.cnblogs.com/qgc1995/archive/2018/08/29/9553572.html
1, the installation Docker, the command: yum install docker-ce default install the latest version
yum install docker-ce
Installation Docker, the command: yum install docker-ce- version number, I chose 17.12.1.ce, as follows
[root@localhost ~]# yum install docker-ce-17.12.1.ce
2, install the required packages, yum-util provide yum-config-manager function, the other two are driven dependent devicemapper
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3, start and join the boot
$ sudo systemctl start docker $ sudo systemctl enable docker
4, verify that the installation was successful (there are two parts, client service and installation start indicate docker had been successful)
$ docker version