解决docker拉取readeck镜像报Error response from daemon: toomanyrequests问题

readeck 是一个内容中心,目前已支持中文翻译

这是本地化部署后的效果:

原命令为:

docker run --rm -ti -p 8000:8000 -v readeck-data:/readeck codeberg.org/readeck/readeck:latest

Unable to find image 'codeberg.org/readeck/readeck:latest' locally
docker: Error response from daemon: toomanyrequests: <!DOCTYPE html>
<html class="codeberg-design">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width" />
  <title>429: Too many requests</title>
  
  <link rel="icon" href="https://design.codeberg.org/logo-kit/favicon.ico" type="image/x-icon" />
  <link rel="icon" href="https://design.codeberg.org/logo-kit/favicon.svg" type="image/svg+xml" />
  <link rel="apple-touch-icon" href="https://design.codeberg.org/logo-kit/apple-touch-icon.png" />

  <link rel="stylesheet" href="https://design.codeberg.org/design-kit/codeberg.css" />
  <script defer src="https://design.codeberg.org/design-kit/codeberg.js"></script>
  <script defer type="module" src="https://design.codeberg.org/components/codeberg-components.js"></script>

  <link href="https://fonts.codeberg.org/dist/inter/Inter%20Web/inter.css" rel="stylesheet" />
  <link href="https://fonts.codeberg.org/dist/fontawesome5/css/all.min.css" rel="stylesheet" />
</head>
<body>
  <div class="page-wrapper d-flex align-items-center"> 
    <div class="content">
      <h1>:(</h1>
      <h2 class="content-title">
        You sent too many requests to Codeberg.
      </h2>
      <p>
        We are sorry for the inconvenience, but the wild west situation around the AI gold rush has prompted many big players to "simply crawl the web". Their massive resources can cause traffic that is much more than Codeberg can handle. It was a difficult decision for us, but we started to block suspicious traffic more aggressively to keep Codeberg available and performant to most of our users. And your traffic was also suspicious to us.
      </p>
      <p>
        If you run into this error for the first time, wait about half an hour and try again. If you keep running into this with your normal usage, please contact us so that we can improve our rate limiting. Write to us: <a href="mailto:codeberg@codeberg.org">email codeberg@codeberg.org</a>, <a href="https://social.anoxinon.de/@codeberg">Mastodon</a> or our <a href="https://matrix.to/#/#codeberg.org:matrix.org">Matrix channel</a>.
      </p>
      <p>Thank you for your understanding.</p>

解决办法:

用官方的镜像仓库拉取

后台运行模式:

docker run --rm -d -p 8000:8000 -v readeck-data:/readeck code.readeck.org/readeck/readeck:latest

前台交互运行:

docker run --rm -ti -p 8000:8000 -v readeck-data:/readeck code.readeck.org/readeck/readeck:latest

20241115更正一下,要去掉--rm命令改成 restart unless-stopped

docker run -d --name readeck \ -p 8000:8000 \ -v readeck-data:/readeck \ -e SOME_ENV_VAR=some_value \ --restart unless-stopped \ code.readeck.org/readeck/readeck:latest

  • -d: 后台运行容器
  • --name readeck: 为容器指定名称
  • -p 8000:8000: 将主机的 8000 端口映射到容器的 8000 端口
  • -v readeck-data:/readeck: 将现有的 readeck-data 数据卷挂载到容器的 /readeck 目录
  • -e SOME_ENV_VAR=some_value: 设置环境变量 SOME_ENV_VAR 为 some_value
  • --restart unless-stopped: 设置自动重启策略,除非手动停止容器
  • code.readeck.org/readeck/readeck:latest: 使用的镜像
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值