【教程】通过Docker运行AnythingLLM
转载请注明出处:小锋学长生活大爆炸如果本文帮助到了你,欢迎[点赞、收藏、关注]哦~
官方教程:Local Docker Installation ~ AnythingLLM
1、先创建一个目次用于保存anythingllm的持久化文件:
sudo mkdir /app
sudo mkdir /app/anythingllm/
sudo chmod 777 /app/anythingllm/ -R
2、然后运行Docker:
docker pull mintplexlabs/anythingllm:latest
export STORAGE_LOCATION="/app/anythingllm" && \
mkdir -p $STORAGE_LOCATION && \
touch "$STORAGE_LOCATION/.env" && \
docker run -itd -p 3001:3001 \
--cap-add SYS_ADMIN \
--add-host=host.docker.internal:host-gateway \
--network=host \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
--name anythingllm \
mintplexlabs/anythingllm:latest
# 这个可选:--network=host
3、可以查察Docker log:
docker logs anythingllm -f https://i-blog.csdnimg.cn/direct/a7cf60159a1748bcba24d9f140fc1ab7.png
也可以进入容器:
docker exec -it anythingllm /bin/bash
4、欣赏器访问:<ip>:3001 即可:
https://i-blog.csdnimg.cn/direct/f2882c78e8be40169a550a1a7596b1a0.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]