1. Check the kernel version
uname -r
3.10.0-327.el7.x86_64
2. Install docker
Internet connection required
yum install docker
3. Enter y to confirm the installation
4. Start docker
[root@localhost ~]# systemctl start docker
[root@localhost ~]# docker -v
Docker version 1.13.1, build 774336d/1.13.1
5、开机启动docker
root@localhost ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
6. Stop docker
[root@localhost ~]# systemctl stop docker