install
update yum package firstyum update
remove old versionyum remove docker docker-common docker-selinux docker-engine
install dependency and yum-config-manager
in yum-utils
yum install -y yum-utils device-mapper-persistent-data lvm2
set yum repositoryyum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
installyum install docker-ce docker-ce-cli containerd.io
problem
Requires: container-selinux >= 2.7.4
1 | wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
https://docs.docker.com/install/linux/docker-ce/centos/
https://blog.csdn.net/cai454692590/article/details/83479000
https://blog.csdn.net/renzhixin1314/article/details/88604096