当前位置:   article > 正文

黑群晖docker无法pul镜像,x509错误解决方法_群晖 x509: certificate has expired or is not yet val

群晖 x509: certificate has expired or is not yet valid:

想在黑裙上安装Alist进行网盘挂载,结果发现docker注册表总是报错,后在命令行执行docker pull,却报如下错误。

docker pull xhofe/alist:latest
latest: Pulling from xhofe/alist
4edfc05e3af2: Pulling fs layer
5c9f13539ec3: Pulling fs layer
150503794722: Pulling fs layer
ba969078b329: Waiting
2831ac40fe72: Waiting
error pulling image configuration: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/db/dbeb8908885dbfafa23af1064d4bcd56f7587367ca3d51e60ec2066dd904ba41/data?verify=1715241666-lhv4YdDhP2Xjh%2F%2B%2FVzfa9ehUd80%3D": x509: certificate has expired or is not yet valid: current time 2024-05-09T15:11:07+08:00 is after 2021-09-30T14:01:15Z
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

很久都无法解决,偶一日发现大佬提供方法,尝试了下立马解决。分享如下:

1.ssh登录群辉后台
2.sudo su切换为root
3.执行如下命令更新证书:

mv /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.bak && sudo curl -Lko /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert.pem && synoservice --restart pkgctl-Docker
  • 1

再次执行问题解决。

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号