1、更新yum

 yum -y update

2、安装docker

yum install -y docker

3、运行、重启、关闭docker

service docker start
service docker restart
service docker stop