curl: (60) Peer's Certificate has expired

安装docker-compose出现错误,安装命令:
curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

报错信息:

curl: (60) Peer's Certificate has expired.
More details here: http://curl.haxx.se/docs/sslcerts.html

原因: 虚拟机时间不准确,重新设置一下就好了

  1. 查看时间
    [root@localhost ~]# date
    Sat Sep 7 19:46:05 CST 2019
  2. 设置时间
    [root@localhost ~]# date -s "2020-06-25 13:11:30"
    Thu Jun 25 13:11:30 CST 2020
  3. 再次查看
    [root@localhost ~]# date
    Thu Jun 25 13:11:32 CST 2020

猜你喜欢

转载自www.cnblogs.com/linyufeng/p/13191567.html
今日推荐