Error response from daemon: error while validating Root CA Certificate: x509: certificate has expired or is not yet valid问题排查

前言

接因为证书时间问题,所以没法自动更新。只能手动停止并重启swarm集群。

问题截图

因为集群时间不一致。

1. 解决方法

1.yum -y install ntp ntpdate

2.同步时间:ntpdate cn.pool.ntp.org

原文地址:https://www.cnblogs.com/cuijinlong/p/13094016.html