System Environment: centos 6.5
Kernel version: 2.6.32-696.1.1.el6.x86_64
Version: Docker version 1.7.1, build 786b29d / 1.7.1
Question: Download Mirror error:
# docker search centos
Error response from daemon: Get https://index.docker.io/v1/search?q=centos: x509: certificate has expired or is not yet valid
Such errors are generally local system time expired certificate error caused the error, so first check the local system time
Solution:
1. Check the time and found the wrong time
# date
Mon Apr 3 19:36:54 CST 2017
2. Synchronize time
# ntpdate cn.pool.ntp.org
17 Apr 17:40:45 ntpdate[32206]: step time server 202.112.29.82 offset 5262859.193967 sec
3. Check whether the normal time
date # Time Synchronization success
Mon Aug 7 11:28:43 CST 2017
4. successfully downloaded image (problem solving)
# docker search centos
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
centos The official build of CentOS. 3551 [OK]
jdeathe/centos-ssh CentOS-6 6.9 x86_64 / CentOS-7 7.3.1611 x8... 79 [OK]
tutum/centos Simple CentOS docker image with SSH access 33
kinogmt/centos-ssh CentOS with SSH 16 [OK]
centos/postgresql-94-centos7 PostgreSQL 9.4 SQL database server