1. 环境
查看系统内核版本>=3.10
删除版本
yum remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-engine
docker-selinux
container-selinux
更新yum源包
yum update
更新索引
yum makecache fast
安装引用包
yum install -y yum-utils device-mapper-persistent-data lvm2
设置yum源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
查看版本
yum list docker-ce --showduplicates | sort -r
2. 安装docker
yum install docker-ce
有异常
–> Finished Dependency Resolution
Error: Package: containerd.io-1.4.3-3.1.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-