1.安装包命令
yum install -y yum-utils device-mapper-persistent-data lvm2
官网地址
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
##阿里云地址
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
直接安装docker-ce
yum install docker-ce
启动和运行hello-word
systemctl start docker
docker run hello-world
docker -versioin