配置包仓库
dnf config-manager --add-repo=http://mirrors.tencent.com/docker-ce/linux/centos/docker-ce.repo
安装docker
dnf install -y docker-ce --nobest
启动docker
systemctl start docker
设置开机自启
systemctl enable docker.service
dnf config-manager --add-repo=http://mirrors.tencent.com/docker-ce/linux/centos/docker-ce.repo
安装docker
dnf install -y docker-ce --nobest
systemctl start docker
设置开机自启
systemctl enable docker.service