docker compose 从django链接chromadb 报错 HTTPConnectionPool Max retries exceeded with url如何修复?-灵析社区

无敌奥特MEN

chroma_client = chromadb.HttpClient( host='localhost', port=8989, settings=Settings(allow_reset=True, anonymized_telemetry=False)) 这里写的`localhost`,你可能需要把这里改成 `chroma`,django这个容器里面访问localhost,只能访问到django容器的localhost,它是属于一个独立的网络命名空间(既不属于chroma也不属于宿主机)。

阅读量:1

点赞量:0

问AI