0. CentOS8 先执行
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
1. 安装docker
curl -sSL https://get.daocloud.io/docker | sh
2. 启动并设置开机自启动
systemctl enable docker
systemctl start docker
2. 设置镜像站
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
来源:oschina
链接:https://my.oschina.net/kmnztech/blog/4298503