<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Docker - Tag - 傲来说的博客</title><link>https://aolaishuo.cc/tags/docker/</link><description>Docker - Tag - 傲来说的博客</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Tue, 19 May 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://aolaishuo.cc/tags/docker/" rel="self" type="application/rss+xml"/><item><title>Hindsight Docker部署踩坑记录</title><link>https://aolaishuo.cc/posts/2026-05-19-hindsight-docker%E9%83%A8%E7%BD%B2%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/</link><pubDate>Tue, 19 May 2026 00:00:00 +0800</pubDate><author>傲来说</author><guid>https://aolaishuo.cc/posts/2026-05-19-hindsight-docker%E9%83%A8%E7%BD%B2%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/</guid><description><![CDATA[<h1 id="hindsight-docker-部署踩坑记录">Hindsight Docker 部署踩坑记录</h1>
<blockquote>
<p>部署环境：Ubuntu 22.04.5 / 4 vCPU i3-N305 / 7.8G RAM / Docker v29.4.3
部署日期：2026-05-18
最后更新：2026-05-19</p></blockquote>
<h2 id="一初始部署">一、初始部署</h2>
<p>按照教程用标准参数启动容器：</p>
<ul>
<li>LLM: DeepSeek API (deepseek-v4-flash)</li>
<li>Embeddings: 智谱 embedding-3 (openai provider)</li>
<li>Reranker: 默认 local (没改)</li>
</ul>
<p>结果：<strong>容器反复崩溃重启</strong></p>
<h2 id="二第一个坑--huggingface-网络不通">二、第一个坑 — HuggingFace 网络不通</h2>
<p><strong>现象</strong>：日志报 <code>RuntimeError: Cannot send a request, as the client has been closed.</code>，容器启动后 300 秒超时退出。</p>
<p><strong>原因</strong>：默认的 local reranker 需要从 HuggingFace 下载 <code>cross-encoder/ms-marco-MiniLM-L-6-v2</code> 模型，国内访问不了 HuggingFace。</p>
<p><strong>解决</strong>：加环境变量 <code>HF_ENDPOINT=https://hf-mirror.com</code>，走国内镜像。</p>
<h2 id="三第二个坑--postgresql-数据目录损坏">三、第二个坑 — PostgreSQL 数据目录损坏</h2>
<p><strong>现象</strong>：每次重启都报 <code>WARNING: pg0 data directory exists but no PG_VERSION found</code>。</p>]]></description></item></channel></rss>