转载请注明出处:小锋学长生活大爆炸[xfxuezhagn.cn]
如果本文帮助到了你,欢迎[点赞、收藏、关注]哦~
官方教程: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:latestexport 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
也可以进入容器:
docker exec -it anythingllm /bin/bash
4、浏览器访问:<ip>:3001 即可: