{"id":24525,"date":"2025-04-19T10:17:13","date_gmt":"2025-04-19T02:17:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24525.html"},"modified":"2025-04-19T10:17:13","modified_gmt":"2025-04-19T02:17:13","slug":"ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%b3%bb%e7%bb%9fdocker%e9%83%a8%e7%bd%b2ollamaanythingllm%e5%ae%9e%e7%8e%b0deepseek%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24525.html","title":{"rendered":"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u62c9\u53d6Ollama\u955c\u50cf<\/li>\n<li>\u8fd0\u884cOllama\u5bb9\u5668\u5e76\u62c9\u53d6\u6a21\u578b<\/li>\n<li>\n<ul>\n<li>\u542f\u52a8Ollama\u5bb9\u5668<\/li>\n<li>Ollama Dockerfile\u90e8\u5206\u8bf4\u660e<\/li>\n<li>\u62c9\u53d6\u6a21\u578b<\/li>\n<\/ul>\n<\/li>\n<li>AnythingLLM\u5bb9\u5668\u90e8\u7f72<\/li>\n<li>\n<ul>\n<li>anythingllm\u955c\u50cf\u62c9\u53d6<\/li>\n<li>anythingllm\u5bb9\u5668\u8fd0\u884c<\/li>\n<li>\u4f7f\u7528anythingLLM<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\u670d\u52a1\u5668\u914d\u7f6e CPU&#xff1a;Intel\u00ae Xeon\u00ae Gold 6138 &#xff08;20\u6838\u5fc3 40\u7ebf\u7a0b&#xff09; \u5185\u5b58&#xff1a;32GB \u78c1\u76d8&#xff1a;4TB GPU&#xff1a;NVIDIA GeForce RTX 3090 24G\u663e\u5b58<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a3598e4.png\" alt=\"cpu\u4fe1\u606f\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a37ce41.png\" alt=\"\u5185\u5b58\u4fe1\u606f\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a398955.png\" alt=\"\u78c1\u76d8\u4fe1\u606f\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a3b8b08.png\" alt=\"GPU\u4fe1\u606f\" \/><\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Ubuntu server 22.04<\/li>\n<li>Docker\u7248\u672c&#xff1a;20.10.22 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a3e4f9d.png\" alt=\"\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021708-680307a417160.png\" alt=\"docker\u4fe1\u606f\" \/> \u64cd\u4f5c\u7cfb\u7edf\u3001docker\u3001gpu\u9a71\u52a8\u5982\u4f55\u5b89\u88c5&#xff0c;\u8fd9\u4e9b\u90fd\u53ef\u4ee5\u5728\u7f51\u4e0a\u641c\u5230\u76f8\u5173\u4fe1\u606f&#xff0c;\u672c\u6587\u5c31\u4e0d\u518d\u63cf\u8ff0\u4e86\u3002<\/li>\n<\/ul>\n<h2>\u62c9\u53d6Ollama\u955c\u50cf<\/h2>\n<ul>\n<li>Docker\u955c\u50cf\u4ed3\u5e93\u5b98\u65b9\u5730\u5740&#xff1a;docker\u5b98\u65b9\u955c\u50cf\u4ed3\u5e93\u5730\u5740 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021708-680307a43d078.png\" alt=\"docker\u955c\u50cf\" \/> \u5728\u201cExplore\u201d\u4e2d\u627e\u5230\u201cGen AI\u201d&#xff0c;\u7136\u540e\u5f80\u4e0b\u7ffb&#xff0c;\u627e\u5230\u201cOllama\u201d\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021708-680307a473631.png\" alt=\"Ollama\u955c\u50cf\" \/><\/li>\n<li>\u62c9\u53d6\u6307\u4ee4<\/li>\n<\/ul>\n<p>docker pull ollama\/ollama<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021709-680307a513ceb.png\" alt=\"Ollama\u955c\u50cf\" \/> \u8fd9\u4e2a\u955c\u50cf\u6bd4\u8f83\u5927&#xff0c;\u800c\u4e14\u56fd\u5185\u62c9\u53d6\u955c\u50cf\u672c\u6765\u4e5f\u6bd4\u8f83\u6162\u3002\u4e4b\u524d\u8fd8\u6709\u963f\u91cc\u4e91&#xff0c;\u9053\u5ba2\u4e91\u7b49\u5e73\u53f0\u7684\u955c\u50cf\u52a0\u901f\u7ad9&#xff0c;\u73b0\u5728\u5f88\u591a\u90fd\u4e0d\u80fd\u7528\u4e86&#xff0c;\u8fd9\u91cc\u5217\u51e0\u4e2a\u53ef\u7528\u7684\u52a0\u901f\u7ad9\u70b9&#xff0c;\u8bfb\u8005\u53ef\u4ee5\u914d\u7f6e\u4e0a\u3002<\/p>\n<p>vim \/etc\/docker\/daemon.json<br \/>\n{<br \/>\n    &#034;data-root&#034;: &#034;\/var\/lib\/docker&#034;,<br \/>\n    &#034;log-driver&#034;: &#034;json-file&#034;,<br \/>\n    &#034;log-level&#034;: &#034;warn&#034;,<br \/>\n    &#034;log-opts&#034;: {<br \/>\n        &#034;max-file&#034;: &#034;3&#034;,<br \/>\n        &#034;max-size&#034;: &#034;10m&#034;<br \/>\n    },<br \/>\n    # \u4e3b\u8981\u662f\u5982\u4e0b\u5185\u5bb9&#xff0c;\u5176\u4f59\u90e8\u5206\u8bf7\u6839\u636e\u81ea\u5df1\u5b9e\u9645\u73af\u5883\u914d\u7f6e\u3002<br \/>\n    &#034;registry-mirrors&#034;: [<br \/>\n        &#034;https:\/\/proxy.1panel.live&#034;,<br \/>\n        &#034;https:\/\/docker.1panel.top&#034;,<br \/>\n        &#034;https:\/\/docker.m.daocloud.io&#034;,<br \/>\n        &#034;https:\/\/docker.1ms.run&#034;,<br \/>\n        &#034;https:\/\/docker.ketches.cn&#034;<br \/>\n    ],<br \/>\n    &#034;runtimes&#034;: {<br \/>\n        &#034;nvidia&#034;: {<br \/>\n            &#034;args&#034;: [],<br \/>\n            &#034;path&#034;: &#034;nvidia-container-runtime&#034;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<h2>\u8fd0\u884cOllama\u5bb9\u5668\u5e76\u62c9\u53d6\u6a21\u578b<\/h2>\n<p>\u6839\u636e\u955c\u50cf\u4f7f\u7528\u65b9\u5f0f\u53ef\u77e5&#xff0c;\u8fd0\u884collama\u5bb9\u5668\u540e&#xff0c;\u53ef\u5728\u5bb9\u5668\u5185\u62c9\u53d6\u6a21\u578b\u6587\u4ef6\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021709-680307a5390a1.png\" alt=\"Ollama\u5bb9\u5668\u4f7f\u7528\u8bf4\u660e\" \/><\/p>\n<h3>\u542f\u52a8Ollama\u5bb9\u5668<\/h3>\n<p>docker run -d &#8211;gpus&#061;all -v ollama:\/root\/.ollama -p 11434:11434 &#8211;name ollama ollama\/ollama<\/p>\n<p>\u4e0a\u8ff0\u6307\u4ee4\u662f\u5b98\u65b9\u7ed9\u7684\u53c2\u8003\u6307\u4ee4&#xff0c;\u4e3b\u8981\u662f-v\u53c2\u6570&#xff0c;\u5982\u679c\u6309\u7167\u4e0a\u8ff0\u6307\u4ee4&#xff0c;-v\u540e\u9762\u76f4\u63a5\u6839\u201collama\u201d&#xff0c;\u4f1a\u5728docker\u7684\u5b58\u50a8\u5377\u4e2d\u521b\u5efa\u4e00\u4e2a\u672c\u5730\u7684ollama\u5b58\u50a8\u5377&#xff0c;\u5982\u4e0b\u56fe\u3002\u4e0d\u5efa\u8bae\u8fd9\u79cd\u65b9\u5f0f&#xff0c;\u56e0\u4e3a\u8fd9\u79cd\u65b9\u5f0f&#xff0c;\u6700\u540e\u62c9\u53d6\u7684\u6a21\u578b\u6587\u4ef6\u4e0d\u597d\u627e&#xff08;\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e2d\u3010\/var\/lib\/docker\/volumes\u3011&#xff09;&#xff0c;\u8fd8\u662f\u5efa\u8bae\u91c7\u7528\u81ea\u5b9a\u4e49\u7684\u7edd\u5bf9\u8def\u5f84&#xff0c;\u65b9\u4fbf\u627e\u5230\u6a21\u578b\u6587\u4ef6\u4fdd\u5b58\u7684\u4f4d\u7f6e\u548c\u8fc1\u79fb\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021709-680307a572016.png\" alt=\"ollama\u5b58\u50a8\u5377\" \/> \u53ef\u4ee5\u53c2\u8003\u5982\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p> docker run -d &#8211;name ollama &#8211;gpus&#061;all -v \/home\/rarelong\/project\/ollama\/_data:\/root\/.ollama -p 11434:11434  ollama\/ollama<\/p>\n<p>\u5176\u4e2d&#xff0c;\/home\/rarelong\/project\/ollama\/_data\u662f\u6211\u590d\u5236\u7684\/var\/lib\/docker\/volumes\/ollama\/_data\/\u8fd9\u4e2a\u76ee\u5f55\u7684\u5185\u5bb9&#xff0c;\u8bf4\u660eollama\u7684\u6a21\u578b\u6587\u4ef6\u662f\u53ef\u4ee5\u590d\u5236\u8fc1\u79fb\u7684&#xff0c;\u90a3\u4e48\u5c31\u53ef\u4ee5\u5c06ollama\u7684\u955c\u50cf\u548c\u8fd9\u4e2a\u76ee\u5f55\u5168\u90e8\u6253\u5305&#xff0c;\u62f7\u8d1d\u81f3\u6ca1\u6709\u4e92\u8054\u7f51\u7684\u73af\u5883\u4e2d\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n<h3>Ollama Dockerfile\u90e8\u5206\u8bf4\u660e<\/h3>\n<p>\u4eceollama\u7684\u955c\u50cfdockerfile\u5185\u5bb9\u6765\u770b&#xff0c;\u5b98\u65b9\u6307\u5b9a\u4e86\u4e00\u4e2aENTRYPOINT [\u201c\/bin\/ollama\u201d]&#xff0c;CMD [\u201cserver\u201d]&#xff0c;\u8fd9\u5bfc\u81f4\u6211\u4eec\u53ea\u80fd\u5148\u5c06ollama\u955c\u50cf\u542f\u52a8\u8d77\u6765&#xff0c;\u5f53\u4f5c\u670d\u52a1\u8fd0\u884c&#xff0c;\u7136\u540e\u7528\u201cdocker exec -it\u201d\u6307\u4ee4\u62c9\u53d6\u6a21\u578b\u6587\u4ef6\u6216\u8005\u8fd0\u884c\u6a21\u578b\u3002\u5982\u679c\u76f4\u63a5\u5728\u542f\u52a8\u7684\u65f6\u5019\u52a0\u4e0a\u76f8\u5173\u53c2\u6570&#xff0c;\u4f1a\u542f\u52a8\u5931\u8d25\u3002\u5982\u4e0b\u56fe&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021709-680307a58e540.png\" alt=\"\u542f\u52a8\u5931\u8d25\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021709-680307a5aeff8.png\" alt=\"\u542f\u52a8\u5931\u8d25\" \/><\/p>\n<ul>\n<li>\u5b98\u65b9dockerfile\u90e8\u5206\u5185\u5bb9 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021709-680307a5cf41c.png\" alt=\"Ollama\u955c\u50cfdockerfile\u90e8\u5206\u5185\u5bb9\" \/> \u6b63\u5e38\u542f\u52a8\u753b\u9762\u5982\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021710-680307a6221a2.png\" alt=\"\u6b63\u786e\u542f\u52a8\u5bb9\u5668\" \/><\/li>\n<\/ul>\n<p>\u8bf4\u660e&#xff1a;\u5176\u4e2ddocker\u542f\u52a8\u7684\u76f8\u5173\u53c2\u6570\u672c\u6587\u4e0d\u505a\u8bf4\u660e&#xff0c;\u6bd4\u5982\u3010-itd&#xff0c;\u2013rm&#xff0c;-p&#xff0c;-v\u3011\u7b49&#xff0c;\u8fd9\u4e9b\u9700\u8981\u8bfb\u8005\u81ea\u884c\u5b66\u4e60\u3002\u672c\u6587\u5e76\u975e\u57fa\u7840\u6559\u5b66\u5185\u5bb9&#xff0c;\u611f\u8c22\u7406\u89e3\u3002<\/p>\n<h3>\u62c9\u53d6\u6a21\u578b<\/h3>\n<p>Ollama\u5b98\u65b9\u5730\u5740&#xff1a;Ollama\u5b98\u65b9\u5730\u5740 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021710-680307a66b270.png\" alt=\"\u6a21\u578b\u4e0b\u8f7d\" \/> \u524d\u9762\u51e0\u4e2a\u5c31\u662fdeepseek-r1\u6a21\u578b\u7684\u94fe\u63a5&#xff0c;\u8fd8\u6709\u5f88\u591a\u522b\u7684\u6a21\u578b&#xff0c;\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u4e0b\u8f7d\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021711-680307a700a46.png\" alt=\"deepseek-r1\u6a21\u578b\u4e0b\u8f7d\" \/> \u70b9\u51fb\u8fdb\u53bb\u4e4b\u540e&#xff0c;\u5c31\u6709\u9009\u62e9\u7248\u672c\u548c\u5bf9\u5e94\u7684\u4e0b\u8f7d\u6307\u4ee4\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021711-680307a79e4e7.png\" alt=\"\u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6\" \/> \u6211\u8fd9\u91cc\u5df2\u7ecf\u4e0b\u8f7d\u4e86\u51e0\u4e2a\u6a21\u578b\u6587\u4ef6&#xff0c;32b&#xff0c;7b&#xff0c;8b\u8fd9\u51e0\u4e2a\u53c2\u6570\u7684\u6587\u4ef6\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021712-680307a8158d2.png\" alt=\"\u5df2\u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6\" \/> \u6bd4\u5982\u8fd9\u91cc\u6211\u4eec\u518d\u4e0b\u8f7d\u4e00\u4e2a1.5b\u53c2\u6570\u7684\u6a21\u578b\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u91c7\u7528\u7684\u53c2\u6570\u662f\u201crun\u201d&#xff0c;\u5f53\u672c\u5730\u6ca1\u6709\u8fd9\u4e2a\u6a21\u578b\u6587\u4ef6\u65f6&#xff0c;\u4f1a\u81ea\u52a8\u4eceollama\u4ed3\u5e93\u4e2d\u53bb\u62c9\u53d6\u8fd9\u4e2a\u6587\u4ef6&#xff0c;\u8fd9\u70b9\u6839docker\u8fd0\u884c\u5bb9\u5668\u7c7b\u4f3c\u3002<\/li>\n<li>\u53ea\u662f\u5355\u72ec\u62c9\u53d6\u6587\u4ef6\u7684\u8bdd&#xff0c;\u5e94\u8be5\u662f\u201cpull\u201d\u53c2\u6570\u3002\u8fd9\u4e2a\u6839docker\u4e5f\u662f\u7c7b\u4f3c\u7684\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021712-680307a83256d.png\" alt=\"ollama\u53c2\u6570\" \/><\/li>\n<\/ul>\n<p>docker exec -it ollama ollama run deepseek-r1:1.5b<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19lvsn4ialgck.png\" alt=\"deepseek1.5b\u53c2\u6570\u6a21\u578b\" \/> <img decoding=\"async\" src=\"2025-04-19qcg2v15fg5s.png\" alt=\"\u542f\u52a81.5b\u53c2\u6570\u6a21\u578b\" \/> <img decoding=\"async\" src=\"2025-04-19smrg2ixe5u5.png\" alt=\"\u5f53\u524d\u5df2\u6709\u6a21\u578b\u6587\u4ef6\" \/><\/p>\n<h2>AnythingLLM\u5bb9\u5668\u90e8\u7f72<\/h2>\n<p>AnythingLLM\u5b98\u65b9\u5730\u5740&#xff1a;AnythingLLM\u5b98\u65b9\u5730\u5740<\/p>\n<p>AnythingLLM \u662f\u4e00\u6b3e\u4e13\u4e3a\u4f01\u4e1a\u6216\u4e2a\u4eba\u5b9a\u5236\u7684 \u79c1\u6709\u5316\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u5e94\u7528\u5e73\u53f0&#xff0c;\u6838\u5fc3\u76ee\u6807\u662f\u4e3a\u7528\u6237\u63d0\u4f9b\u5b89\u5168\u3001\u53ef\u63a7\u4e14\u9ad8\u5ea6\u5b9a\u5236\u5316\u7684 AI \u89e3\u51b3\u65b9\u6848\u3002 \u5728\u5b98\u7f51\u4e0a&#xff0c;\u4e00\u76f4\u5f80\u4e0b\u7ffb&#xff0c;\u76f4\u5230\u7ffb\u5230\u201cRun via Docker\u201d\u65f6&#xff0c;\u70b9\u51fb&#xff0c;\u8fdb\u5165anythingllm\u7684docker\u955c\u50cf\u4ed3\u5e93\u3002 <img decoding=\"async\" src=\"2025-04-19iii5q4strup.png\" alt=\"docker\u90e8\u7f72anythinllmm\" \/><\/p>\n<h3>anythingllm\u955c\u50cf\u62c9\u53d6<\/h3>\n<p>\u62c9\u53d6\u955c\u50cf\u6307\u4ee4&#xff1a;<\/p>\n<p>docker pull mintplexlabs\/anythingllm<\/p>\n<p>\u5728\u6982\u8ff0\u6587\u4ef6\u4e2d&#xff0c;\u6709\u8be5\u955c\u50cf\u7684\u76f8\u5173\u8bf4\u660e&#xff0c;\u6982\u8ff0\u6587\u4ef6\u7684\u6700\u540e\u6709anythingllm\u5bb9\u5668\u7684\u8fd0\u884c\u65b9\u5f0f\u3002 <img decoding=\"async\" src=\"2025-04-19ibetrhclfdt.png\" alt=\"anythingLLM\u5bb9\u5668\u8fd0\u884c\u6307\u5357\" \/> <img decoding=\"async\" src=\"2025-04-19eetohz3o0az.png\" alt=\"anythingllm\u955c\u50cf\u6587\u4ef6\" \/><\/p>\n<h3>anythingllm\u5bb9\u5668\u8fd0\u884c<\/h3>\n<p>\u8fd0\u884c\u6307\u5357&#xff1a;anythingllm\u5bb9\u5668\u8fd0\u884c\u6307\u5357 anythingLLM\u6587\u6863<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19x1luz4oeqnf.png\" alt=\"anythingllm\u5bb9\u5668\u8fd0\u884c\u6307\u5357\" \/> \u5b98\u65b9\u6307\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>export STORAGE_LOCATION&#061;$HOME\/anythingllm &amp;&amp; \\\\<br \/>\nmkdir -p $STORAGE_LOCATION &amp;&amp; \\\\<br \/>\ntouch &#034;$STORAGE_LOCATION\/.env&#034; &amp;&amp; \\\\<br \/>\ndocker run -d -p 3001:3001 \\\\<br \/>\n&#8211;cap-add SYS_ADMIN \\\\<br \/>\n-v ${STORAGE_LOCATION}:\/app\/server\/storage \\\\<br \/>\n-v ${STORAGE_LOCATION}\/.env:\/app\/server\/.env \\\\<br \/>\n-e STORAGE_DIR&#061;&#034;\/app\/server\/storage&#034; \\\\<br \/>\nmintplexlabs\/anythingllm<\/p>\n<p>\u7b80\u5355\u89e3\u91ca\u4e00\u4e0b\u4e0a\u8ff0\u6307\u4ee4\u4e2d\u7684\u4e00\u4e9b\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>export STORAGE_LOCATION&#061; $ HOME\/anythingllm&#xff1a;export\u5b9a\u4e49\u5f53\u524dbash\u7684\u4e34\u65f6\u53d8\u91cf&#xff0c;\u53d8\u91cf\u540d\u79f0\u3010STORAGE_LOCATION\u3011&#xff0c;\u53d8\u91cf\u503c\u3010 $ HOME\/anythingllm\u3011&#xff0c;\u5176\u4e2d$HOME\u662f\u7cfb\u7edf\u73af\u5883\u53d8\u91cf&#xff0c;\u503c\u4e3a\u5f53\u524d\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u3002<\/li>\n<li>&amp;&amp;&#xff1a;\u8868\u793a\u6267\u884c\u5b8c\u4e0a\u4e00\u6761\u6307\u4ee4\u540e&#xff0c;\u7ee7\u7eed\u6267\u884c\u4e0b\u4e00\u6761\u6307\u4ee4&#xff0c;\u5982\u679c\u4e0a\u4e00\u6761\u6307\u4ee4\u6267\u884c\u5931\u8d25&#xff0c;\u540e\u9762\u7684\u6307\u4ee4\u4e0d\u518d\u6267\u884c\u3002<\/li>\n<li>mkdir&#xff1a;\u521b\u5efa\u6587\u4ef6\u5939&#xff1b;-p&#xff1a;\u9012\u5f52\u521b\u5efa\u6587\u4ef6\u5939\u3002<\/li>\n<li>touch&#xff1a;\u521b\u5efa\u6587\u4ef6&#xff1b;.env&#xff1a;\u524d\u9762\u5e26\u70b9\u7684\u6587\u4ef6\u4e3a\u9690\u85cf\u6587\u4ef6\u3002\u8fd9\u91cc\u5e94\u8be5\u662f\u4e00\u4e2a\u4fdd\u5b58\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u7684\u6587\u4ef6\u3002<\/li>\n<li>docker run&#xff1a;\u8fd0\u884c\u5bb9\u5668\u3002<\/li>\n<li>cap-add SYS_ADMIN&#xff1a;\u7ed9\u5bb9\u5668\u8d4b\u4e88\u6bd4\u8f83\u5bbd\u6cdb\u7684\u7ba1\u7406\u6743\u9650\u3002\u6ce8\u610f\u3010\u2013cap-add SYS_ADMIN\u3011 \u5982\u679c\u60a8\u60f3\u6293\u53d6\u7f51\u9875&#xff0c;\u8fd9\u662f\u5fc5\u9700\u7684\u547d\u4ee4\u3002\u6211\u4eec\u4f7f\u7528 PuppeeteerJS \u6765\u6293\u53d6\u7f51\u7ad9\u94fe\u63a5&#xff0c;\u800c &#8211;cap-add SYS_ADMIN \u5141\u8bb8\u6211\u4eec\u5728\u6240\u6709\u8fd0\u884c\u65f6\u4e2d\u4f7f\u7528\u6c99\u76d2 Chromium \u4ee5\u5b9e\u73b0\u6700\u4f73\u5b89\u5168\u5b9e\u8df5\u3002<\/li>\n<\/ul>\n<p>\u6211\u8fd9\u91cc\u4e4b\u524d\u8fd0\u884c\u8fc7\u8fd9\u4e2a\u5bb9\u5668&#xff0c;\u6240\u4ee5\u524d\u9762\u7684\u90a3\u4e9b\u73af\u5883\u53d8\u91cf\u5c31\u4e0d\u7528\u8bbe\u7f6e\u4e86\u3002\u5982\u679c\u4f60\u9700\u8981\u81ea\u5b9a\u4e49\u8fd9\u4e9b\u6362\u53d8\u91cf\u7684\u5185\u5bb9&#xff0c;\u5982\u6570\u636e\u5b58\u50a8\u76ee\u5f55&#xff08;~\/anythingllm\u76ee\u5f55&#xff09;&#xff0c;\u73af\u5883\u53d8\u91cf\u6587\u4ef6&#xff08;.env&#xff09;&#xff0c;\u53ef\u4ee5\u5148\u884c\u521b\u5efa&#xff0c;\u5728\u901a\u8fc7-v\u53c2\u6570&#xff0c;\u4ee5\u7edd\u5bf9\u8def\u5f84\u65b9\u5f0f\u6302\u8f7d\u8fdb\u5bb9\u5668\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-04-194jxeldpuppk.png\" alt=\"\u672c\u5730anythingllm\u76ee\u5f55\" \/><\/p>\n<ul>\n<li>\u81ea\u5b9a\u4e49\u8fd0\u884c\u6307\u4ee4&#xff1a;<\/li>\n<\/ul>\n<p>docker run -d -p 3001:3001 &#8211;cap-add SYS_ADMIN -v \/home\/rarelong\/project\/anythingllm\/:\/app\/server\/storage -v \/home\/rarelong\/project\/anythingllm\/.env:\/app\/server\/.env -e STORAGE_DIR&#061;&#034;\/app\/server\/storage&#034;  mintplexlabs\/anythingllm<\/p>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f&#xff0c;\u4e5f\u53ef\u4ee5\u628a~\/anythingllm\u76ee\u5f55\u548canythingllm\u7684\u955c\u50cf\u6253\u5305\u8fc1\u79fb\u81f3\u522b\u7684\u5b89\u88c5\u6709docker\u7684\u670d\u52a1\u5668\u6216pc\u4e0a\u8fd0\u884c\u3002<\/p>\n<h3>\u4f7f\u7528anythingLLM<\/h3>\n<ul>\n<li>\u8bbf\u95ee \u5728\u6d4f\u89c8\u5668\u8f93\u5165\u670d\u52a1\u5668IP&#043;\u7aef\u53e3&#xff0c;\u5373\u53ef\u8bbf\u95ee\u3002 <img decoding=\"async\" src=\"2025-04-19r1enddziiec.png\" alt=\"\u8bbf\u95eeanythingllm\" \/><\/li>\n<li>\u9009\u62e9\u6a21\u578b \u8fd9\u4e2a\u9700\u8981ollama\u5df2\u7ecf\u4e0b\u8f7d\u4e86\u76f8\u5173\u6a21\u578b&#xff0c;\u624d\u80fd\u9009\u62e9\u5bf9\u5e94\u7684\u6a21\u578b\u6587\u4ef6\u3002 <img decoding=\"async\" src=\"2025-04-19lnggzhg0d4b.png\" alt=\"\u6a21\u578b\u9009\u62e9\" \/> \u7ed9\u5b83\u4e0a\u4f20\u4e00\u4e2a\u6587\u4ef6&#xff0c;\u7136\u540e\u95ee\u5b83\u4e00\u4e2a\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2025-04-192zhnftlhrh4.png\" alt=\"\u4e0a\u4f20\u6587\u6863\" \/><\/p>\n<p><img decoding=\"async\" src=\"2025-04-19fbq5gs0pmjw.png\" alt=\"\u95ee\u9898\" \/> <img decoding=\"async\" src=\"2025-04-19y20iugrmqtf.png\" alt=\"\u56de\u7b54\" \/> \u53ef\u4ee5\u770b\u523032b\u53c2\u6570\u6a21\u578b\u8fd0\u884c\u9700\u8981\u7684\u663e\u5b58\u7a7a\u95f4\u662f20G\u5de6\u53f3\u3002 <img decoding=\"async\" src=\"2025-04-19rervmmacclj.png\" alt=\"\u6a21\u578b\u8fd0\u884c\" \/> <img decoding=\"async\" src=\"2025-04-19bxwny5cs0ty.png\" alt=\"\u518d\u6b21\u63d0\u95ee\" \/> \u770b\u6765\u5b83\u8fd8\u662f\u6ca1\u8ba4\u5230\u8fd9\u4e2a\u56fe\u7247\u7684\u5185\u5bb9\u3002 <img decoding=\"async\" src=\"2025-04-19btkbpeeq3cm.png\" alt=\"pdf\u7684\u56fe\u7247\u5185\u5bb9\" \/><\/p>\n<ul>\n<li>\u518d\u6b21\u63d0\u95ee <img decoding=\"async\" src=\"2025-04-19ye5elvpmb34.png\" alt=\"\u7b2c\u4e8c\u6b21\u63d0\u95ee\" \/><\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2025-04-19xbaqi1xjqxp.png\" alt=\"\u518d\u6b21\u63d0\u95ee\" \/><\/p>\n<ul>\n<li>\u8fc7\u4e00\u4f1a&#xff0c;gpu\u4e2d\u7684\u6a21\u578b\u6587\u4ef6\u5c31\u6ca1\u6709\u4e86\u3002 <img decoding=\"async\" src=\"2025-04-19e4peotnrwqf.png\" alt=\"\u6a21\u578b\u9000\u51fa\u4e86gpu\" \/><\/li>\n<\/ul>\n<p>\u7531\u6b64\u53ef\u89c1&#xff0c;anythingLLM\u5bf9\u4e8epdf\u8fd9\u79cd\u6587\u6863\u7684\u5904\u7406\u8fd8\u6709\u4e00\u5b9a\u7684\u56f0\u96be&#xff0c;\u6bd4\u5982pdf\u91cc\u9762\u7684\u56fe\u7247\u4e2d\u7684\u5185\u5bb9&#xff0c;\u5c31\u6ca1\u89e3\u6790\u5230\u3002\u4e0d\u8fc7\u4e07\u80fd\u7684\u7f51\u53cb\u5df2\u7ecf\u6709\u4e86\u89e3\u51b3\u65b9\u6848&#xff0c;\u8bfb\u8005\u53ef\u4ee5\u641c\u7d22\u5b66\u4e60\u3002 \u4e3b\u8981\u5c31\u662f\u8981\u8ba9\u5927\u6a21\u578b\u8ba4\u8bc6\u4f60\u7ed9\u7684\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002docker\u90e8\u7f72deepseek+anythinyLLM_\u4e4c\u73ed\u56fe \u90e8\u7f72ollama<\/p>\n","protected":false},"author":2,"featured_media":24505,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,103,50,43,224],"topic":[],"class_list":["post-24525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-ubuntu","tag-50","tag-43","tag-224"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/24525.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002docker\u90e8\u7f72deepseek+anythinyLLM_\u4e4c\u73ed\u56fe \u90e8\u7f72ollama\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24525.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T02:17:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a3598e4.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24525.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24525.html\",\"name\":\"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T02:17:13+00:00\",\"dateModified\":\"2025-04-19T02:17:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24525.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24525.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24525.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/24525.html","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002docker\u90e8\u7f72deepseek+anythinyLLM_\u4e4c\u73ed\u56fe \u90e8\u7f72ollama","og_url":"https:\/\/www.wsisp.com\/helps\/24525.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T02:17:13+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419021707-680307a3598e4.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/24525.html","url":"https:\/\/www.wsisp.com\/helps\/24525.html","name":"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T02:17:13+00:00","dateModified":"2025-04-19T02:17:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24525.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24525.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24525.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ubuntu\u670d\u52a1\u5668\u7cfb\u7edfDocker\u90e8\u7f72Ollama+AnythingLLM\u5b9e\u73b0DeepSeek\u672c\u5730\u90e8\u7f72"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=24525"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24525\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/24505"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24525"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}