依次运⾏以下命令添加yum源
yum update
yum install epel-release -y
yum clean all
yum list
安装并运⾏Docker
yum install docker-io -y
systemctl start docker
检查安装结果
docker info
启动使⽤Docker
systemctl start docker #运⾏Docker守护进程
systemctl stop docker #停⽌Docker守护进程
systemctl restart docker #重启Docker守护进程