centos 7 安装docker
1.更新包
sudo yum update
2.安装docker
sudo yum -y install docker
3.启动docker
//查看docker状态 service docker status //启动docker service docker start
4.开机自启动
//开机启动
systemctl enable docker.service
//查看是否开机启动
systemctl is-enabled docker.service