docker 報錯:x509: certificate has expired or is not yet valid

環境:ubuntu 14.04docker

程序:docker 1.6ubuntu

下載鏡像報錯:centos

# docker pull centos:centos5ide

Pulling repository centosspa

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


這種錯誤,通常都是本地系統時間錯誤致使報錯證書過時,因此先查看本地系統時間同步


# date "+%Y-%m-%d"  #系統時間2月15日,而正確時間應該是4月17日,因此很大可能就是該緣由   it

2015-02-15io


解決:class

# 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 

相關文章
相關標籤/搜索