首页 > 其他 > 详细

docker 报错:x509: certificate has expired or is not yet valid

时间:2015-04-17 18:27:39      阅读:7639      评论:0      收藏:0      [点我收藏+]

环境:ubuntu 14.04

程序:docker 1.6

下载镜像报错:

# docker pull centos:centos5

Pulling repository centos

FATA[0004] Get https://index.docker.io/v1/repositories/library/centos/images: x509: certificate has expired or is not yet valid 


这种错误,一般都是本地系统时间错误导致报错证书过期,所以先查看本地系统时间


# date "+%Y-%m-%d"  #系统时间2月15日,而正确时间应该是4月17日,所以很大可能就是该原因   

2015-02-15


解决:

# ntpdate cn.pool.ntp.org               #同步一下时间

17 Apr 17:40:45 ntpdate[32206]: step time server 202.112.29.82 offset 5262859.193967 sec


# date "+%Y-%m-%d"                      #时间同步成功

2015-04-17


# docker pull centos:centos5            #成功下载镜像,问题解决

centos5: Pulling from centos

861c710fef70: Downloading [>               ] 1.075 MB/87.03 MB

511136ea3c5a: Already exists 

5b12ef8fd570: Already exists 


本文出自 “在路上” 博客,请务必保留此出处http://beijing0414.blog.51cto.com/8612563/1633956

docker 报错:x509: certificate has expired or is not yet valid

原文:http://beijing0414.blog.51cto.com/8612563/1633956

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!