docker pull 失败报错:x509: certificate has expired or is not yet valid
Posted dev0ps
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker pull 失败报错:x509: certificate has expired or is not yet valid相关的知识,希望对你有一定的参考价值。
[root@node3 docker]# docker pull gcr.io/google_containers/pause-amd64:3.1 Error response from daemon: Get https://gcr.io/v2/: x509: certificate has expired or is not yet valid
这种错误,一般都是本地系统时间错误导致报错证书过期,所以先查看本地系统时间
[root@node3 docker]# date Wed Jun 10 19:08:23 CST 2020
安装ntp同步时间
[root@node3 docker]# yum install -y ntp [root@node3 docker]# crontab -l */2 * * * * /usr/sbin/ntpdate 182.92.12.11;/sbin/hwclock -w > /dev/null #2>&1
同步完时间重新拉取镜像成功!!!
以上是关于docker pull 失败报错:x509: certificate has expired or is not yet valid的主要内容,如果未能解决你的问题,请参考以下文章
docker pull / docker login 报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509
docker pull / docker login 报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509
docker从私有镜像库pull/push镜像问题:Error response from daemon: Get https://harbor.op.xxxx.com/v2/: x509: cert