docker in centeros7

install

update yum package first
yum update

remove old version
yum 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 repository
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

install
yum install docker-ce docker-ce-cli containerd.io

problem

Requires: container-selinux >= 2.7.4

1
2
3
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install epel-release
yum install container-selinux

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