{"id":35155,"date":"2025-05-02T17:16:05","date_gmt":"2025-05-02T09:16:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35155.html"},"modified":"2025-05-02T17:16:05","modified_gmt":"2025-05-02T09:16:05","slug":"%e5%ae%9e%e9%aa%8c%e5%ae%a4%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%a9%e7%94%a8docker%e9%83%a8%e7%bd%b2llama3%e6%9c%ac%e5%9c%b0%e6%8b%89%e5%8f%96%e6%89%93%e5%8c%85%e4%b8%8a%e4%bc%a0%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35155.html","title":{"rendered":"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b"},"content":{"rendered":"<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u6574\u4f53\u601d\u8def&#xff1a;<\/p>\n<li style=\"text-align:justify\">docker\u62c9\u53d6ollama\/ollama \u955c\u50cf\u8fd0\u884collama<\/li>\n<li style=\"text-align:justify\">\u8fdb\u5165\u5bb9\u5668\u4f7f\u7528ollama\u62c9\u53d6\u8fd0\u884c\u6a21\u578b llama3<\/li>\n<p style=\"text-align:justify\">\u51c6\u5907\u5de5\u4f5c&#xff0c;xshell\u8fde\u63a5\u670d\u52a1\u5668&#xff0c;\u4e0b\u9762\u7684\u5bf9\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c\u90fd\u662f\u5728xshell\u4e0a\u9762\u8f93\u5165\u6307\u4ee4\u3002\u6211\u8fd9\u91cc\u662fLinux\u7684\u670d\u52a1\u5668&#xff0c;\u5b66\u6821\u7684\u5185\u7f51\u4e0b\u76f4\u63a5\u8f93ip\u7aef\u53e3\u53f7\u8fde\u63a5\u8f93\u5165\u5bc6\u7801\u5c31\u53ef\u4ee5\u3002&#xff08;xshell\u662fB\u7ad9\u627e\u7684\u514d\u8d39\u7684&#xff09;<\/p>\n<p style=\"text-align:justify\">\u76ee\u524d\u7528\u7684\u662f\u5b66\u6821\u7684\u670d\u52a1\u5668&#xff0c;docker\u8fd8\u6709\u663e\u5361\u662f\u9ed8\u8ba4\u914d\u7f6e\u597d\u4e86\u7684\u3002\u6240\u4ee5\u4e0d\u7528\u8fdb\u884c\u524d\u9762\u7684\u914d\u7f6e\u64cd\u4f5c\u3002<\/p>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1290\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091559-68148d4f4e84b.png\" width=\"2240\" \/><\/p>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1301\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091600-68148d507c561.png\" width=\"2240\" \/><\/p>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\u5c31\u8fde\u63a5\u6210\u529f\u4e86\u00a0<\/p>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1129\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091601-68148d51a9b6d.png\" width=\"2240\" \/><\/p>\n<p style=\"text-align:justify\">\u9996\u5148\u4f7f\u7528(1)docker\u4ece Docker Hub\u62c9\u53d6ollama\/ollama \u955c\u50cf\u8fd0\u884c&#xff1a;&#xff08;\u4e00\u822c\u76f4\u63a5\u62c9\u53d6\u4e0d\u884c&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u76f4\u63a5\u62c9\u53d6\u4f1a\u9047\u5230\u7f51\u7edc\u95ee\u9898&#xff0c;\u4e00\u822c\u662f\u56fd\u5185\u7f51&#xff0c;\u5728\u7535\u8111\u4e0a\u7528\u68af\u5b50\u4e0d\u884c\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u53ef\u4ee5\u4fee\u6539docker\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u963f\u91cc\u4e91\u955c\u50cf&#xff0c;\u4f46\u662f\u6ca1\u6709\u6743\u9650\u4fee\u6539&#xff0c;&#xff08;ubuntu\u7684\u5b89\u5168\u7b56\u7565\u9650\u5236\u4e86&#xff09;\u76ee\u524d\u627e\u5230\u4ee5\u4e0b\u672c\u5730\u62c9\u53d6\u540e\u6253\u5305\u4f20\u8f93\u7684\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">&#xff08;\u524d\u4e09\u6b65\u5c31\u662f\u5728\u81ea\u5df1\u7535\u8111\u4e0a\u4e0d\u7528\u670d\u52a1\u5668\u8fdb\u884c&#xff09;<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"1.%20%E5%9C%A8%E4%B8%80%E5%8F%B0%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%20Docker%20Hub%20%E7%9A%84%E6%9C%BA%E5%99%A8%E4%B8%8A%E6%8B%89%E5%8F%96%E9%95%9C%E5%83%8F%EF%BC%88%E5%8D%B3%E4%B8%8D%E7%99%BB%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9C%A8%E8%87%AA%E5%B7%B1%E7%94%B5%E8%84%91%E4%B8%8A%E7%94%A8docker%E6%8B%89%E5%8F%96%EF%BC%89-toc\" style=\"margin-left:80px\">1. \u5728\u4e00\u53f0\u53ef\u4ee5\u8bbf\u95ee Docker Hub \u7684\u673a\u5668\u4e0a\u62c9\u53d6\u955c\u50cf&#xff08;\u5373\u4e0d\u767b\u670d\u52a1\u5668\u5728\u81ea\u5df1\u7535\u8111\u4e0a\u7528docker\u62c9\u53d6&#xff09;<\/p>\n<p id=\"2.%20%E5%AF%BC%E5%87%BA%E9%95%9C%E5%83%8F%E4%B8%BA%20tar%20%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:80px\">2. \u5bfc\u51fa\u955c\u50cf\u4e3a tar \u6587\u4ef6<\/p>\n<p id=\"3.%20%E5%B0%86%20tar%20%E6%96%87%E4%BB%B6%E4%BC%A0%E8%BE%93%E5%88%B0%E7%9B%AE%E6%A0%87%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%88%E8%BF%99%E9%87%8C%E9%9C%80%E8%A6%81%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9C%A8%E4%B8%80%E4%B8%AA%E5%B1%80%E5%9F%9F%E7%BD%91%E5%86%85%EF%BC%8C%E5%B0%B1%E6%98%AF%E8%BF%9E%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%97%B6%E7%99%BB%E5%BD%95%E5%86%85%E7%BD%91%EF%BC%89-toc\" style=\"margin-left:80px\">3. \u5c06 tar \u6587\u4ef6\u4f20\u8f93\u5230\u76ee\u6807\u670d\u52a1\u5668&#xff08;\u8fd9\u91cc\u9700\u8981\u548c\u670d\u52a1\u5668\u5728\u4e00\u4e2a\u5c40\u57df\u7f51\u5185&#xff0c;\u5c31\u662f\u8fde\u670d\u52a1\u5668\u65f6\u767b\u5f55\u5185\u7f51&#xff09;<\/p>\n<p id=\"4.%20%E5%9C%A8%E7%9B%AE%E6%A0%87%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E5%8A%A0%E8%BD%BD%E9%95%9C%E5%83%8F-toc\" style=\"margin-left:80px\">4. \u5728\u76ee\u6807\u670d\u52a1\u5668\u4e0a\u52a0\u8f7d\u955c\u50cf<\/p>\n<\/p>\n<h4 id=\"1.%20%E5%9C%A8%E4%B8%80%E5%8F%B0%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%20Docker%20Hub%20%E7%9A%84%E6%9C%BA%E5%99%A8%E4%B8%8A%E6%8B%89%E5%8F%96%E9%95%9C%E5%83%8F%EF%BC%88%E5%8D%B3%E4%B8%8D%E7%99%BB%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9C%A8%E8%87%AA%E5%B7%B1%E7%94%B5%E8%84%91%E4%B8%8A%E7%94%A8docker%E6%8B%89%E5%8F%96%EF%BC%89\" style=\"text-align:justify\">1. \u5728\u4e00\u53f0\u53ef\u4ee5\u8bbf\u95ee Docker Hub \u7684\u673a\u5668\u4e0a\u62c9\u53d6\u955c\u50cf&#xff08;\u5373\u4e0d\u767b\u670d\u52a1\u5668\u5728\u81ea\u5df1\u7535\u8111\u4e0a\u7528docker\u62c9\u53d6&#xff09;<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u786e\u4fdd\u4f60\u6709\u4e00\u53f0\u80fd\u591f\u6b63\u5e38\u8bbf\u95ee Docker Hub \u7684\u673a\u5668&#xff08;\u4f8b\u5982\u4f60\u7684\u672c\u5730\u7535\u8111\u6216\u5176\u4ed6\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4ece Docker Hub \u62c9\u53d6 ollama\/ollama \u955c\u50cf&#xff1a;<\/p>\n<p>docker pull ollama\/ollama <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"170\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091602-68148d52b841f.jpg\" width=\"1101\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u9a8c\u8bc1\u662f\u5426\u6210\u529f&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u68c0\u67e5\u955c\u50cf\u662f\u5426\u5df2\u7ecf\u6210\u529f\u62c9\u53d6\u5230\u672c\u5730&#xff1a;<\/p>\n<p>docker images <\/p>\n<h4 id=\"2.%20%E5%AF%BC%E5%87%BA%E9%95%9C%E5%83%8F%E4%B8%BA%20tar%20%E6%96%87%E4%BB%B6\" style=\"text-align:justify\">2. \u5bfc\u51fa\u955c\u50cf\u4e3a tar \u6587\u4ef6<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f7f\u7528 docker save \u547d\u4ee4\u5c06\u955c\u50cf\u5bfc\u51fa\u4e3a\u4e00\u4e2a .tar \u6587\u4ef6&#xff1a;<\/p>\n<p>docker save -o ollama.tar ollama\/ollama <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u68c0\u67e5\u5f53\u524d\u76ee\u5f55\u4e0b\u662f\u5426\u751f\u6210\u4e86 ollama.tar \u6587\u4ef6&#xff1a;<\/p>\n<p>ls -lh ollama.tar <\/p>\n<h4 id=\"3.%20%E5%B0%86%20tar%20%E6%96%87%E4%BB%B6%E4%BC%A0%E8%BE%93%E5%88%B0%E7%9B%AE%E6%A0%87%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%88%E8%BF%99%E9%87%8C%E9%9C%80%E8%A6%81%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9C%A8%E4%B8%80%E4%B8%AA%E5%B1%80%E5%9F%9F%E7%BD%91%E5%86%85%EF%BC%8C%E5%B0%B1%E6%98%AF%E8%BF%9E%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%97%B6%E7%99%BB%E5%BD%95%E5%86%85%E7%BD%91%EF%BC%89\" style=\"text-align:justify\">3. \u5c06 tar \u6587\u4ef6\u4f20\u8f93\u5230\u76ee\u6807\u670d\u52a1\u5668&#xff08;\u8fd9\u91cc\u9700\u8981\u548c\u670d\u52a1\u5668\u5728\u4e00\u4e2a\u5c40\u57df\u7f51\u5185&#xff0c;\u5c31\u662f\u8fde\u670d\u52a1\u5668\u65f6\u767b\u5f55\u5185\u7f51&#xff09;<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f7f\u7528 scp \u547d\u4ee4\u5c06 ollama.tar \u6587\u4ef6\u4ece\u5f53\u524d\u673a\u5668\u4f20\u8f93\u5230\u76ee\u6807\u670d\u52a1\u5668&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u76ee\u6807\u670d\u52a1\u5668\u7684\u8def\u5f84&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u4f20\u5230\u7528\u6237\u7684\u5bb6\u76ee\u5f55&#xff1a;<\/p>\n<p>scp ollama.tar qxiao&#064;lab10x3090:~ <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"449\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091602-68148d52cd54d.png\" width=\"745\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u767b\u5f55\u5230\u76ee\u6807\u670d\u52a1\u5668&#xff0c;\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5df2\u6210\u529f\u4f20\u8f93&#xff08;\u8fd9\u91cc\u5f00\u59cb\u5728\u670d\u52a1\u5668\u4e0a\u64cd\u4f5c&#xff09;&#xff1a;<\/p>\n<p>ls -lh ~\/ollama.tar <\/p>\n<h4 id=\"4.%20%E5%9C%A8%E7%9B%AE%E6%A0%87%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E5%8A%A0%E8%BD%BD%E9%95%9C%E5%83%8F\" style=\"text-align:justify\">4. \u5728\u76ee\u6807\u670d\u52a1\u5668\u4e0a\u52a0\u8f7d\u955c\u50cf<\/h4>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u767b\u5f55\u5230\u76ee\u6807\u670d\u52a1\u5668&#xff08;\u5982\u679c\u5c1a\u672a\u767b\u5f55&#xff09;\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f7f\u7528 docker load \u547d\u4ee4\u52a0\u8f7d .tar \u6587\u4ef6\u4e2d\u7684\u955c\u50cf&#xff1a;<\/p>\n<p>docker load -i ollama.tar <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u9a8c\u8bc1\u662f\u5426\u6210\u529f&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u68c0\u67e5\u955c\u50cf\u662f\u5426\u5df2\u6210\u529f\u52a0\u8f7d\u5230\u76ee\u6807\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>docker images <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u52a0\u8f7d\u955c\u50cf\u540e&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u5bb9\u5668&#xff1a;<\/p>\n<p>docker run -d -v ollama:\/root\/.ollama -p 11434:11434 &#8211;name ollama ollama\/ollama <\/p>\n<p style=\"text-align:justify\">\u6700\u540e\u8fdb\u5165\u5bb9\u5668\u62c9\u53d6\u8fd0\u884c\u6a21\u578b&#xff08;\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u9700\u6c42\u62c9\u53d670B\u6216\u8005\u5c0f\u4e00\u70b9\u7684&#xff0c;&#xff08;\u6211\u8fd9\u91cc\u662f\u4e4b\u524d\u8fd8\u6709\u4e00\u4e2aollama\u955c\u50cf\u51b2\u7a81\u4e86\u6240\u4ee5\u6539\u4e86\u540d\u5b57new&#xff09;&#xff09;&#xff1a;<\/p>\n<p>docker exec -it ollama ollama run llama3 <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"605\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091602-68148d52df144.png\" width=\"2058\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u6700\u540e\u8fd9\u6837\u5c31\u6210\u529f\u90e8\u7f72\u5566&#xff01;&#xff08;\u5b8c\u7ed3\u6492\u82b1&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1116\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091603-68148d53800e0.png\" width=\"2234\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u65b0\u624b\u5c0f\u767d\u53c2\u8003csdn\u4e0a\u5176\u4ed6\u535a\u4e3b\u5b8c\u6210&#xff0c;\u5f00\u59cb\u63a5\u5230\u8fd9\u4e2a\u5c0f\u4efb\u52a1\u8fdedocker\u600e\u4e48\u7528\u5b8c\u5168\u4e0d\u77e5\u9053&#xff0c;\u6700\u5f00\u59cb\u662f\u76f4\u63a5\u7528\u5b98\u65b9ollama\u6307\u4ee4\u4e0b\u8f7d&#xff0c;\u5b9e\u5728\u592a\u6162\u4e86\u6839\u672c\u4e0d\u884c\u3002\u8fd8\u6709\u5c31\u662f\u4e00\u76f4\u6743\u9650\u9650\u5236&#xff0c;\u5728\u738b\u5e08\u5144\u7684\u6307\u5bfc\u4e0b\u624d\u4f7f\u7528docker\u518d\u4e0d\u65ad\u5c1d\u8bd5\u624d\u6210\u529f\u3002\u771f\u7684\u5341\u5206\u611f\u8c22\u738b\u5e08\u5144\u7684\u8010\u5fc3\u89e3\u7b54&#xff01;\u8fd8\u6709\u6211\u81ea\u5df1\u7535\u8111docker\u4e5f\u4e00\u76f4\u6709\u95ee\u9898\u542f\u52a8\u4e0d\u4e86&#xff0c;\u540c\u6837\u975e\u5e38\u611f\u8c22biubiu\u5e2e\u5fd9\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u3002\u6700\u540e\u4e0d\u5f97\u4e0d\u611f\u8c22\u901a\u4e49\u5927\u6a21\u578b\u5e2e\u6211\u5206\u6790\u89e3\u51b3\u95ee\u9898&#xff0c;\u8d5e!<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4e0b\u4e00\u6b65\u5c1d\u8bd5\u5fae\u8c03\u5927\u6a21\u578b&#xff0c;\u4e89\u53d6\u8c03\u6559\u51fa\u66f4\u62fd\u7684\u9738\u9053\u603b\u88c1\u3002\u54c8\u54c8\u54c8\u54c8&#xff0c;\u656c\u8bf7\u671f\u5f85\u2026\u2026<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"291\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091604-68148d5490905.png\" width=\"1943\" \/><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb688\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u65b0\u624b\u5c0f\u767d\u53c2\u8003csdn\u4e0a\u5176\u4ed6\u535a\u4e3b\u5b8c\u6210\uff0c\u5f00\u59cb\u63a5\u5230\u8fd9\u4e2a\u5c0f\u4efb\u52a1\u8fdedocker\u600e\u4e48\u7528\u5b8c\u5168\u4e0d\u77e5\u9053\uff0c\u6700\u5f00\u59cb\u662f\u76f4\u63a5\u7528\u5b98\u65b9ollama\u6307\u4ee4\u4e0b\u8f7d\uff0c\u5b9e\u5728\u592a\u6162\u4e86\u6839\u672c\u4e0d\u884c\u3002\u51c6\u5907\u5de5\u4f5c\uff0cxshell\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u4e0b\u9762\u7684\u5bf9\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c\u90fd\u662f\u5728xshell\u4e0a\u9762\u8f93\u5165\u6307\u4ee4\u3002\u6211\u8fd9\u91cc\u662fLinux\u7684\u670d\u52a1\u5668\uff0c\u5b66\u6821\u7684\u5185\u7f51\u4e0b\u76f4\u63a5\u8f93ip\u7aef\u53e3\u53f7\u8fde\u63a5\u8f93\u5165\u5bc6\u7801\u5c31\u53ef\u4ee5\u3002\u53ef\u4ee5\u4fee\u6539docker\u914d\u7f6e\u6587\u4ef6\uff0c\u6dfb\u52a0\u963f\u91cc\u4e91\u955c\u50cf\uff0c\u4f46\u662f\u6ca1\u6709\u6743\u9650\u4fee\u6539\uff0c\uff08ubuntu\u7684\u5b89\u5168\u7b56\u7565\u9650\u5236\u4e86\uff09\u76ee\u524d\u627e\u5230\u4ee5\u4e0b\u672c\u5730\u62c9\u53d6\u540e\u6253\u5305\u4f20\u8f93\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u76ee\u524d\u7528\u7684\u662f\u5b66\u6821\u7684\u670d\u52a1\u5668\uff0cdocker\u8fd8\u6709\u663e\u5361\u662f\u9ed8\u8ba4\u914d\u7f6e\u597d\u4e86\u7684\u3002<\/p>\n","protected":false},"author":2,"featured_media":35147,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,347,126,3000,3001],"topic":[],"class_list":["post-35155","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-llama","tag-ollama","tag-3000","tag-3001"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b - \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\/35155.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb688\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u65b0\u624b\u5c0f\u767d\u53c2\u8003csdn\u4e0a\u5176\u4ed6\u535a\u4e3b\u5b8c\u6210\uff0c\u5f00\u59cb\u63a5\u5230\u8fd9\u4e2a\u5c0f\u4efb\u52a1\u8fdedocker\u600e\u4e48\u7528\u5b8c\u5168\u4e0d\u77e5\u9053\uff0c\u6700\u5f00\u59cb\u662f\u76f4\u63a5\u7528\u5b98\u65b9ollama\u6307\u4ee4\u4e0b\u8f7d\uff0c\u5b9e\u5728\u592a\u6162\u4e86\u6839\u672c\u4e0d\u884c\u3002\u51c6\u5907\u5de5\u4f5c\uff0cxshell\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u4e0b\u9762\u7684\u5bf9\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c\u90fd\u662f\u5728xshell\u4e0a\u9762\u8f93\u5165\u6307\u4ee4\u3002\u6211\u8fd9\u91cc\u662fLinux\u7684\u670d\u52a1\u5668\uff0c\u5b66\u6821\u7684\u5185\u7f51\u4e0b\u76f4\u63a5\u8f93ip\u7aef\u53e3\u53f7\u8fde\u63a5\u8f93\u5165\u5bc6\u7801\u5c31\u53ef\u4ee5\u3002\u53ef\u4ee5\u4fee\u6539docker\u914d\u7f6e\u6587\u4ef6\uff0c\u6dfb\u52a0\u963f\u91cc\u4e91\u955c\u50cf\uff0c\u4f46\u662f\u6ca1\u6709\u6743\u9650\u4fee\u6539\uff0c\uff08ubuntu\u7684\u5b89\u5168\u7b56\u7565\u9650\u5236\u4e86\uff09\u76ee\u524d\u627e\u5230\u4ee5\u4e0b\u672c\u5730\u62c9\u53d6\u540e\u6253\u5305\u4f20\u8f93\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u76ee\u524d\u7528\u7684\u662f\u5b66\u6821\u7684\u670d\u52a1\u5668\uff0cdocker\u8fd8\u6709\u663e\u5361\u662f\u9ed8\u8ba4\u914d\u7f6e\u597d\u4e86\u7684\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35155.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-02T09:16:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091559-68148d4f4e84b.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35155.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35155.html\",\"name\":\"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-02T09:16:05+00:00\",\"dateModified\":\"2025-05-02T09:16:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35155.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35155.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35155.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b\"}]},{\"@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":"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b - \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\/35155.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb688\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u65b0\u624b\u5c0f\u767d\u53c2\u8003csdn\u4e0a\u5176\u4ed6\u535a\u4e3b\u5b8c\u6210\uff0c\u5f00\u59cb\u63a5\u5230\u8fd9\u4e2a\u5c0f\u4efb\u52a1\u8fdedocker\u600e\u4e48\u7528\u5b8c\u5168\u4e0d\u77e5\u9053\uff0c\u6700\u5f00\u59cb\u662f\u76f4\u63a5\u7528\u5b98\u65b9ollama\u6307\u4ee4\u4e0b\u8f7d\uff0c\u5b9e\u5728\u592a\u6162\u4e86\u6839\u672c\u4e0d\u884c\u3002\u51c6\u5907\u5de5\u4f5c\uff0cxshell\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u4e0b\u9762\u7684\u5bf9\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c\u90fd\u662f\u5728xshell\u4e0a\u9762\u8f93\u5165\u6307\u4ee4\u3002\u6211\u8fd9\u91cc\u662fLinux\u7684\u670d\u52a1\u5668\uff0c\u5b66\u6821\u7684\u5185\u7f51\u4e0b\u76f4\u63a5\u8f93ip\u7aef\u53e3\u53f7\u8fde\u63a5\u8f93\u5165\u5bc6\u7801\u5c31\u53ef\u4ee5\u3002\u53ef\u4ee5\u4fee\u6539docker\u914d\u7f6e\u6587\u4ef6\uff0c\u6dfb\u52a0\u963f\u91cc\u4e91\u955c\u50cf\uff0c\u4f46\u662f\u6ca1\u6709\u6743\u9650\u4fee\u6539\uff0c\uff08ubuntu\u7684\u5b89\u5168\u7b56\u7565\u9650\u5236\u4e86\uff09\u76ee\u524d\u627e\u5230\u4ee5\u4e0b\u672c\u5730\u62c9\u53d6\u540e\u6253\u5305\u4f20\u8f93\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u76ee\u524d\u7528\u7684\u662f\u5b66\u6821\u7684\u670d\u52a1\u5668\uff0cdocker\u8fd8\u6709\u663e\u5361\u662f\u9ed8\u8ba4\u914d\u7f6e\u597d\u4e86\u7684\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/35155.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-02T09:16:05+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250502091559-68148d4f4e84b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/35155.html","url":"https:\/\/www.wsisp.com\/helps\/35155.html","name":"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-02T09:16:05+00:00","dateModified":"2025-05-02T09:16:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35155.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35155.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35155.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5b9e\u9a8c\u5ba4\u670d\u52a1\u5668\u5229\u7528docker\u90e8\u7f72Llama3\u672c\u5730\u62c9\u53d6\u6253\u5305\u4e0a\u4f20\u6d41\u7a0b"}]},{"@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\/35155","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=35155"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35155\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/35147"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35155"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}