1、yum -y install wget
2、yum -y install sudo
3、yum -y install which
4、yum install -y yum-utils device-mapper-persistent-data lvm2
5、yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
6、yum list | grep initscripts
7、yum -y install initscripts
8、yum -y install https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.4.3-3.1.el8.x86_64.rpm
9、yum install -y docker-ce docker-ce-cli containerd.io
10、启动docker
docker run -itd --name XXXXXX --privileged=
true
centos:latest /usr/sbin/init