环境: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