1、yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
2、yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
3、yum install docker-ce
4、输入sudo docker run hello-world,出现以下内容说明安装成功。
docker常用命令
service docker start
service docker restart
service docker stop
docker images 列出本地镜像。