centos安装docker
1.安装docker ce版本
yum install -y docker-ce
2.查看docker版本
docker version
3.设置开机自启docker 服务
systemctl enable docker
systemctl start docker