docker正常运行,宿主机关机后启动docker.service 失败,systemctl status docker 发下有如下错误:
Error creating cluster component: error while loading TLS Certificat in /var/lib/docker/swarm/certificates/swarm-node.crt: x509: certificate has expired or is not valid
这是因为docker-swarm 的原因,根据报错提示,删除docker-swarm启动成功后重新安装docker-swarm即可
具体方法:
rm -rf /var/lib/docker/swarm/certificates/swarm-node.crt