安装docker源
> curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
> yum install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.10-3.2.el7.x86_64.rpm
因为用的是centos7里的containerrd,先要删掉系统中有冲突的包
yum remove podman-manpages
安装docker
yum install docker-ce
启动
> systemctl start docker
docker info
[root@localhost ~]# docker --version
Docker version 19.03.13, build 4484c46d9d