docker安装
1.下载依赖项
yum -y install yum-utils device-mapper-peristent-data lvn2
2.设置镜像源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3.安装
yum -y install docker-ce
启动服务
systemctl start docker
设置开机启动
systemctl enable docker
测试
docker run hello-world