Centos7根据yum源安装指定版本docker

添加docker的yum源

yum install -y yum-utils device-mapper-persistent-data lvm2

yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

查看可用版本

yum list docker-ce --showduplicates | sort -r

安装指定版本docker

yum install -y docker-ce-18.06.2.ce-3.el7

猜你喜欢

转载自www.cnblogs.com/biaopei/p/11937292.html