docker search出现报错:certificate has expired or is not yet valid
在虚拟机中使用docker search 的命令的时候出现报错:
certificate has expired or is not yet valid的解决方法:
输入
date
命令,查看是否为当前时间,如果时间不准确,那就执行以下命令同步时间:yum install -y ntpdate ntp
ntpdate cn.pool.ntp.org
如果是出现超时响应的话,修改以下文件
vi /etc/docker/daemon.json
此加速地址可在阿里云官网镜像服务的镜像加速中找到
还没有评论,来说两句吧...