1.在centos7上直接yum安装docker
[root@localhost ~]# yum install docker
2.启动docker
[root@localhost ~]#service docker start
3.查看docker版本,验证是否安装成功
[root@localhost ~]#docker version
over