当前文章: 首页 >> 软件 >> 虚拟 >> Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
聚划算
«   2020年2月   »
12
3456789
10111213141516
17181920212223
242526272829
网站分类
    海外云服务器CPS_轻量拓展全民云计算企业云服务器云盾证书
标签列表
最近发表

Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid

执行docker pull registry时提示以下错误

[root@vir-centos7 ~]# docker pull registry 
Using default tag: latest
Trying to pull repository docker.io/library/registry ... 
Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid


一般是因为系统时间不对,可以通过ntpdate命令同步

[root@vir-centos7 ~]# date
Thu Feb 21 03:59:09 EST 2019
[root@vir-centos7 ~]# ntpdate cn.pool.ntp.org   
28 Aug 23:28:56 ntpdate[4149]: step time server 124.108.20.1 offset 16309752.824035 sec
[root@vir-centos7 ~]# date
Wed Aug 28 23:29:04 EDT 2019


再次尝试docker pull registry成功

[root@vir-centos7 ~]# docker pull registry 
Using default tag: latest
Trying to pull repository docker.io/library/registry ... 
latest: Pulling from docker.io/library/registry
c87736221ed0: Pull complete 
1cc8e0bb44df: Pull complete 
54d33bcb37f5: Pull complete 
e8afc091c171: Pull complete 
b4541f6d3db6: Pull complete 
Digest: sha256:8004747f1e8cd820a148fb7499d71a76d45ff66bac6a29129bfdbfdc0154d146
Status: Downloaded newer image for docker.io/registry:latest
[root@vir-centos7 ~]#


声明:本站原创文章,转载、复制、使用等请注明出处。
标题Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
作者jues
地址: http://blog.jues.org.cn/post/get-httpsregistry-1.docker.iov2-x509-certificate-has-expired-or-is-not-yet-valid.html

发表评论:

Powered By Z-BlogPHP 1.5.2 Zero Powered By Z-BlogPHP © 2018 jues博客 Copyright Your WebSite.Some Rights Reserved.联系站长 Themes by jues