黑群晖docker无法pull镜像,x509错误解决方法
想在黑裙上安装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.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
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · Amazon Linux 2023 安装Docker和Docker Compose
- · 修改Docker的默认网段
- · 群晖web station设置wordpress 伪静态
- · docker定时任务Mysql脚本
- · 解决Linux实例磁盘空间满问题
- · failed to fetch metadata: fork/exec /home/appuser/.docker/cli-plugins/docker-buildx: exec format error
- · Docker登录login报错Error saving credentials
- · docker安装mysql8注意事项
- · 蜗牛星际之黑群晖修改SSD中的grub.cfg
- · k3s+kuboard快速搭建K8s生产环境集群
- · 解决es报错:blocked by: [FORBIDDEN/12/index read-only / allow delete (api) ]
- · filebeat按docker容器名创建不同的索引