- docker安装指定版本
#安装依赖
yum install -y yum-utils device-mapper-persistent-data lvm2
#添加aliyun docker源
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
#查看版本
yum list docker-ce.x86_64 --showduplicates | sort -r
#安装指定版本
yum install docker-ce-19.03.12-3.el7 -y
#启动并加入启动项
systemctl enable docker && systemctl start docker