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
: 使用的镜像