安装依赖包:
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
配置仓库地址:
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
开启eger:
sudo yum-config-manager --enable docker-ce-edge
sudo yum-config-manager --enable docker-ce-test
查看可安装的版本:
yum list docker-ce --showduplicates | sort -r