安装Docker version 20.10.6, build 370c289
阿里云docker镜像 用浏览器打开
https://mirrors.aliyun.com/docker-ce/linux/centos/8/x86_64/edge/Packages/
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
yum makecache
yum update
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/8/x86_64/edge/Packages/containerd.io-1.3.7-3.1.el8.x86_64.rpm
yum install -y docker-ce
docker -v
启动、设置开启开机启动
systemctl start docker
systemctl enable docker
查看docker启动状态
systemctl status docker
删除安装包
yum remove docker*