1.查看Centos版本内核是否高与3.1
uname -r
2.如果低于3.1升级内核
yum update
3.安装Docker
yun install docker
4.启动docker
systemctl start docker
5.设置docker开机启动
systemctl enable docker