docker search 报错:Error response from daemon: Get https://index.docker.io/v1/search?q=centos&n=25:...

centos7 中使用docker 连接远程镜像仓库是报错:
Error response from daemon: Get https://index.docker.io/v1/search?q=centos&n=25: x509: certificate has expired or is not yet valid

原因是:本地系统时间错误导致报错证书过期。
1、先查看本地系统时间
date
2、安装 ntpsdate 或者date -s 修改时间
yum install -y ntpsdate
ntpdate cn.pool.ntp.org

恢复正常


image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容