在centos虚拟机上安装docker的时候报一下异常:
[afei@192 ~]$ curl -sSL https://get.daocloud.io/docker | sh
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
解决:
安装并打开NTP后,重新安装问题消失。
安装ntpdate:
sudo yum install ntp -y
启动服务:
systemctl start ntpd
服务自启:
systemctl enable ntpd
参考: