当前位置: 首页 > 工具软件 > open-registry > 使用案例 >

docker报错Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid

都沈浪
2023-12-01

今天在拉取gitlab镜像的时候一直报这个错误

Pulling gitlab (gitlab/gitlab-ce:latest)...
ERROR: Get "https://registry-1.docker.io/v2/": x509: certificate has expired or is not yet valid: current time 2020-11-04T03:55:28-05:00 is before 2021-04-25T00:00:00Z

原来是因为本地系统时间错误导致报错证书过期,输入下面语句同步一下时间

ntpdate cn.pool.ntp.org 

再拉取镜像的时候就不再报错了。

 类似资料: