0


Docker环境安装anythingllm

拉镜像

docker pull mintplexlabs/anythingllm

建目录

exportSTORAGE_LOCATION=$HOME/anythingllm &&\mkdir-p$STORAGE_LOCATION&&\touch"$STORAGE_LOCATION/.env"

检查目录具有写权限

# 为目录anythingllm赋写权限chmod777 anythingllm 

启anythingllm

sudodocker run -d\--name anythingllm \
 --add-host=host.docker.internal:host-gateway \--envSTORAGE_DIR=/app/server/storage \
 --health-cmd "/bin/bash /usr/local/bin/docker-healthcheck.sh || exit 1"\
 --health-interval 60s \
 --health-start-period 60s \
 --health-timeout 10s \
 --cap-add SYS_ADMIN \-p3001:3001/tcp \--restart=always \--user anythingllm \-v${STORAGE_LOCATION}:/app/server/storage \-v${STORAGE_LOCATION}/.env:/app/server/storage/.env \-w /app \
 mintplexlabs/anythingllm 

–cap-add SYS_ADMIN : # this enables a secure sandbox browser to be able to run!

其它常用docker命令

# 列出所有容器的详细信息#包括容器ID、容器名称、所使用的镜像、容器状态、创建时间等dockerps-a# 查看容器运行日志docker logs 容器Id或容器名称

# 删除单个运行中的容器dockerrm-f 容器Id或容器名称
标签: 本地知识库

本文转载自: https://blog.csdn.net/weixin_37536020/article/details/139957915
版权归原作者 时下握今 所有, 如有侵权,请联系我们删除。

“Docker环境安装anythingllm”的评论:

还没有评论