博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
docker x509: certificate has expired or is not yet valid
阅读量:2240 次
发布时间:2019-05-09

本文共 898 字,大约阅读时间需要 2 分钟。

报错信息:

docker: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/cc/cc28899d5b9077f49f22494074e1197ef4af59d0a1ddca636f57c3b1dc3289d3/data?verify=1587094879-q5uwdYlAVhW8uQdvzlZBSN3y3cU%3D: x509: certificate has expired or is not yet valid.

解决步骤:

当我看到error pulling image configuration信息,我就拿着错误信息docker: error pulling image configuration在百度上找,查出来都是说因为国外镜像被墙了,要求换成国内阿里的镜像加速器。经过尝试,发现已经无法解决问题。

  进过问题的分析,用错误中的certificate has expired or is not yet valid进行查询。竟然说是因为日期问题导致证书失效了。为此我查询了一下自己虚拟机的时间,竟然是真的时间不对了。

#1. 查看时间,发现时间不对date    Fri Oct  4 11:18:17 EDT 2019#2. 同步时间(预先安装ntpdate:yum install ntpdate -y)  ntpdate cn.pool.ntp.org   16 Apr 23:07:08 ntpdate[18285]: step time server 185.255.55.20 offset 16890502.233992 sec#3. 查看时间是否正常 date                    # 时间同步成功Thu Apr 16 23:07:32 EDT 20204. 成功下载镜像

问题分析:

长时间为开启虚拟机,导致虚拟机时间长期不同步导致的。

转载地址:http://wnhbb.baihongyu.com/

你可能感兴趣的文章