sudo yum install -y dnf-utils zip unzip sudo yum config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io sudo yum remove -y runc sudo yum install -y docker-ce --nobest二: 运行docker服务
systemctl enable docker.service systemctl start docker.service三: 查看docker状态
systemctl status docker.service docker info docker version