先安装wget
yum -y install wget
拉去 放到/etc/yum。repos.d/下
wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
下载docker
yum -y install docker-ce
安装好之后启动 查看运行状态
systemctl start docker
systemctl status docker