You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Apptainer构建容器时Docker Hub证书过期报错的原因排查

问题与解答

问题描述

安装Apptainer后执行构建命令apptainer build --fakeroot container/fastqc.sif container/fastqc.def时出现报错:

INFO: Starting build...
FATAL: While performing build: conveyor failed to get: while converting reference: pinging container registry registry-1.docker.io: Get "https://registry-1.docker.io/v2/": x509: certificate has expired or is not yet valid: current time 2023-11-02T02:59:00+06:00 is after 2023-10-21T23:59:59Z

系统时间检查结果:

Local time: বৃহঃ 2023-11-02 03:33:09 +06
           Universal time: বুধ 2023-11-01 21:33:09 UTC
                 RTC time: বুধ 2023-11-01 21:33:09
                Time zone: Asia/Dhaka (+06, +0600)
System clock synchronized: yes
              NTP service: ac

询问报错原因,是否是Apptainer或Docker Hub的问题。

解答

这个报错既不是Apptainer的问题,也不是Docker Hub的问题,核心原因是系统时间与Docker Hub服务器的SSL证书有效期不匹配。

报错信息显示Docker Hub的证书有效期截止到2023-10-21T23:59:59Z,但你的系统UTC时间已经是2023-11-01 21:33:09,远超证书有效期,导致SSL证书验证失败。

尽管系统显示时间已同步,但实际可能是NTP同步异常,或者本地时间存在未被检测到的偏差。


内容的提问来源于stack exchange,提问作者Shafayet Rahat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 07:37:24