yum -y update
yum -y install docker
systemctl enable docker #开机自动启动 systemctl start docker #启动
systemctl status docker
不出意外的话,到这里就结束了