{"id":85778,"date":"2026-07-27T22:19:21","date_gmt":"2026-07-27T14:19:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85778.html"},"modified":"2026-07-27T22:19:21","modified_gmt":"2026-07-27T14:19:21","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8-docker-%e9%83%a8%e7%bd%b2-hermes-agent-%e2%86%92-%e9%a3%9e%e4%b9%a6%ef%bc%88%e9%9b%b6%e7%ab%af%e5%8f%a3%e6%9a%b4%e9%9c%b2%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85778.html","title":{"rendered":"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09"},"content":{"rendered":"<h3>\u4e00\u3001\u73af\u5883\u51c6\u5907&#xff1a;Docker \u5b89\u88c5\u4e0e\u955c\u50cf\u52a0\u901f<\/h3>\n<p>\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u8fd8\u6ca1\u88c5 Docker&#xff0c;\u5148\u5b89\u88c5\u3002\u5df2\u88c5\u5219\u8df3\u8fc7\u3002<\/p>\n<p># Ubuntu\/Debian \u5b89\u88c5 Docker<br \/>\nsudo apt update<br \/>\nsudo apt install -y docker.io<br \/>\nsudo systemctl enable &#8211;now docker<\/p>\n<p># \u9a8c\u8bc1<br \/>\ndocker version <\/p>\n<p>\u56fd\u5185\u670d\u52a1\u5668\u5fc5\u987b\u914d\u7f6e\u955c\u50cf\u52a0\u901f&#xff0c;\u5426\u5219\u62c9\u53d6\u5b98\u65b9\u955c\u50cf\u6781\u6162\u6216\u5931\u8d25&#xff1a;<\/p>\n<p>sudo mkdir -p \/etc\/docker<br \/>\nsudo tee \/etc\/docker\/daemon.json &lt;&lt;-&#039;EOF&#039;<br \/>\n{<br \/>\n  &#034;registry-mirrors&#034;: [<br \/>\n    &#034;https:\/\/docker.1ms.run&#034;,<br \/>\n    &#034;https:\/\/docker.xuanyuan.run&#034;,<br \/>\n    &#034;https:\/\/docker.m.daocloud.io&#034;<br \/>\n  ]<br \/>\n}<br \/>\nEOF<br \/>\nsudo systemctl daemon-reload<br \/>\nsudo systemctl restart docker <\/p>\n<p>\u56fd\u5185\u53ef\u7528\u52a0\u901f\u6e90&#xff1a;docker.1ms.run\u3001docker.xuanyuan.run \u7b49<\/p>\n<hr \/>\n<h4>\u4e8c\u3001\u62c9\u53d6 Hermes Agent \u955c\u50cf<\/h4>\n<p># \u901a\u8fc7\u56fd\u5185\u52a0\u901f\u6e90\u62c9\u53d6&#xff08;\u63a8\u8350&#xff09;<br \/>\ndocker pull docker.1ms.run\/nousresearch\/hermes-agent:latest<\/p>\n<p># \u9a8c\u8bc1\u955c\u50cf<br \/>\ndocker images | grep hermes-agent <\/p>\n<p>\u5982\u679c\u52a0\u901f\u6e90\u5931\u6548&#xff0c;\u53ef\u5c1d\u8bd5\u5176\u4ed6\u955c\u50cf\u7ad9&#xff1a;<\/p>\n<p>docker pull docker.xuanyuan.run\/nousresearch\/hermes-agent:latest <\/p>\n<hr \/>\n<h4>\u4e09\u3001\u521b\u5efa\u6570\u636e\u76ee\u5f55\u5e76\u5f00\u653e\u6743\u9650<\/h4>\n<p>\u8fd9\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65&#xff0c;\u5f88\u591a\u914d\u7f6e\u5199\u4e0d\u8fdb\u53bb\u5c31\u662f\u56e0\u4e3a\u6743\u9650\u95ee\u9898\u3002<\/p>\n<\/p>\n<p># \u521b\u5efa\u6301\u4e45\u5316\u76ee\u5f55<br \/>\nsudo mkdir -p \/mnt\/docker\/hermes-agent<\/p>\n<p># \u6743\u9650\u5f00\u5230\u6700\u5927&#xff0c;\u786e\u4fdd\u5bb9\u5668\u5185\u80fd\u8bfb\u5199\u914d\u7f6e<br \/>\nsudo chmod -R 777 \/mnt\/docker\/hermes-agent<\/p>\n<p># \u6e05\u7406\u53ef\u80fd\u5b58\u5728\u7684\u65e7\u5bb9\u5668<br \/>\ndocker rm -f hermes-agent 2&gt;\/dev\/null <\/p>\n<hr \/>\n<h4>\u56db\u3001\u8fdb\u5165\u5bb9\u5668\u8fdb\u884c\u4ea4\u4e92\u5f0f\u914d\u7f6e&#xff08;\u4e0d\u5f00\u653e\u7aef\u53e3&#xff09;<\/h4>\n<p>\u6838\u5fc3\u601d\u8def&#xff1a;\u7528 &#8211;entrypoint \/bin\/bash \u7ed5\u8fc7\u9ed8\u8ba4 entrypoint&#xff0c;\u624b\u52a8\u8fdb\u5165\u5bb9\u5668\u5185\u90e8\u6267\u884c\u914d\u7f6e&#xff0c;\u907f\u514d stdin \u88ab\u9519\u8bef\u89e3\u6790\u4e3a chat \u6d88\u606f\u3002<\/p>\n<p>docker run -it &#8211;name hermes-agent \\\\<br \/>\n  -v \/mnt\/docker\/hermes-agent:\/opt\/data \\\\<br \/>\n  &#8211;entrypoint \/bin\/bash \\\\<br \/>\n  docker.1ms.run\/nousresearch\/hermes-agent:latest <\/p>\n<p>\u8fdb\u5165\u5bb9\u5668\u540e&#xff0c;\u4f9d\u6b21\u6267\u884c&#xff1a;<\/p>\n<p># 1. \u6fc0\u6d3b\u865a\u62df\u73af\u5883<br \/>\nsource \/opt\/hermes\/.venv\/bin\/activate<\/p>\n<p># 2. \u8fd0\u884c\u914d\u7f6e\u5411\u5bfc&#xff08;\u6b64\u65f6\u662f\u6807\u51c6 TUI \u4ea4\u4e92\u754c\u9762&#xff0c;\u4e0d\u4f1a\u518d\u88ab\u5f53 chat \u6d88\u606f&#xff09;<br \/>\nhermes setup <\/p>\n<hr \/>\n<h4>\u4e94\u3001\u5728\u914d\u7f6e\u5411\u5bfc\u4e2d\u6309\u987a\u5e8f\u586b\u5199<\/h4>\n<h5>5.1 \u6a21\u578b\u914d\u7f6e&#xff08;LLM Provider&#xff09;<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u9009\u9879\u63a8\u8350\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>Select Provider<\/td>\n<td>Ollama\u00a0\u6216\u00a0OpenAI-Compatible<\/td>\n<td>\u81ea\u5df1\u90e8\u7f72\u7684\u6a21\u578b\u6216\u8005\u7b2c\u4e09\u65b9<\/td>\n<\/tr>\n<tr>\n<td>Base URL<\/td>\n<td>http:\/\/192.168.x.x:11434<\/td>\n<td>\u4f60\u7684 Ollama \u670d\u52a1\u5185\u7f51\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>Model<\/td>\n<td>\u5982\u00a0hermes3:70b\u3001qwen2.5:72b<\/td>\n<td>\u6839\u636e\u4f60\u5b9e\u9645\u90e8\u7f72\u7684\u6a21\u578b\u586b\u5199<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c Ollama \u548c Docker \u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668&#xff0c;\u53ef\u7528 http:\/\/host.docker.internal:11434&#xff08;Docker Desktop&#xff09;\u6216\u5bbf\u4e3b\u673a\u5b9e\u9645\u5185\u7f51 IP\u3002<\/p>\n<h5>5.2 \u6d88\u606f\u7f51\u5173\u914d\u7f6e&#xff08;Gateway&#xff09;<\/h5>\n<p>\u914d\u7f6e\u5b8c\u6a21\u578b\u540e&#xff0c;\u9009\u62e9\u914d\u7f6e\u6d88\u606f\u5e73\u53f0&#xff1a;<\/p>\n<p>\u5728 hermes setup \u7684\u5b8c\u6574\u6d41\u7a0b\u4e2d\u4e00\u5e76\u914d\u7f6e\u3002<\/p>\n<table>\n<tr>\u9009\u9879\u63a8\u8350\u503c<\/tr>\n<tbody>\n<tr>\n<td>Select Platform<\/td>\n<td>Feishu \/ Lark<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u6587\u4ef6\u4f1a\u5199\u5165&#xff1a;<\/p>\n<p>\/opt\/data\/.hermes\/.env <\/p>\n<p>\u56e0\u4e3a\u6302\u8f7d\u4e86 -v \/mnt\/docker\/hermes-agent:\/opt\/data&#xff0c;\u6240\u4ee5\u914d\u7f6e\u4f1a\u6301\u4e45\u5316\u4fdd\u5b58\u5230\u5bbf\u4e3b\u673a&#xff0c;\u5bb9\u5668\u5220\u4e86\u4e5f\u4e0d\u6015\u3002<\/p>\n<hr \/>\n<h4>\u516d\u3001\u9000\u51fa\u5bb9\u5668&#xff0c;\u8f6c\u4e3a\u540e\u53f0\u5b88\u62a4\u8fd0\u884c<\/h4>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u5728\u5bb9\u5668\u5185\u8f93\u5165 exit \u9000\u51fa\u3002<\/p>\n<p>\u73b0\u5728\u7528\u540e\u53f0\u6a21\u5f0f\u542f\u52a8&#xff0c;\u6ce8\u610f&#xff1a;\u4e0d\u6620\u5c04\u4efb\u4f55\u7aef\u53e3\u3002<\/p>\n<p># \u5148\u5220\u9664\u521a\u624d\u7684\u4ea4\u4e92\u5f0f\u5bb9\u5668<br \/>\ndocker rm -f hermes-agent<\/p>\n<p># \u540e\u53f0\u5b88\u62a4\u8fd0\u884c&#xff0c;\u96f6\u7aef\u53e3\u66b4\u9732<br \/>\ndocker run -d \\\\<br \/>\n  &#8211;name hermes-agent \\\\<br \/>\n  &#8211;restart always \\\\<br \/>\n  -v \/mnt\/docker\/hermes-agent:\/opt\/data \\\\<br \/>\n  docker.1ms.run\/nousresearch\/hermes-agent:latest \\\\<br \/>\n  gateway run <\/p>\n<p>\u5173\u952e\u5b89\u5168\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u274c \u6ca1\u6709 -p 8000:8000 \u6216\u4efb\u4f55\u7aef\u53e3\u6620\u5c04<\/p>\n<\/li>\n<li>\n<p>\u2705 \u53ea\u6709 -v \u6570\u636e\u5377\u6302\u8f7d<\/p>\n<\/li>\n<li>\n<p>\u2705 &#8211;restart always \u786e\u4fdd\u670d\u52a1\u5668\u91cd\u542f\u540e\u81ea\u52a8\u6062\u590d<\/p>\n<\/li>\n<li>\n<p>\u2705 gateway run \u76f4\u63a5\u542f\u52a8\u7f51\u5173&#xff0c;\u4e0d\u518d\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>\u4e03\u3001\u98de\u4e66\u4fa7\u914d\u7f6e&#xff08;\u4e24\u79cd\u6a21\u5f0f&#xff09;<\/h4>\n<h5>\u6a21\u5f0f A&#xff1a;\u626b\u7801\u81ea\u52a8\u521b\u5efa&#xff08;\u6700\u7b80\u5355&#xff0c;\u63a8\u8350&#xff09;<\/h5>\n<p>\u5982\u679c\u4f60\u9009\u62e9\u4e86\u626b\u7801\u65b9\u5f0f&#xff0c;\u7ec8\u7aef\u4f1a\u663e\u793a\u4e00\u4e2a\u4e8c\u7ef4\u7801\u94fe\u63a5&#xff0c;\u7528\u624b\u673a\u98de\u4e66 App \u626b\u7801\u5373\u53ef\u81ea\u52a8\u521b\u5efa\u5e94\u7528\u5e76\u6388\u6743\u3002\u8fd9\u662f\u5b98\u65b9\u63a8\u8350\u7684\u4e00\u952e\u65b9\u5f0f\u3002<\/p>\n<h5>\u6a21\u5f0f B&#xff1a;\u624b\u52a8\u521b\u5efa\u5e94\u7528&#xff08;\u4f01\u4e1a\u73af\u5883&#xff09;<\/h5>\n<li>\n<p>\u8bbf\u95ee \u98de\u4e66\u5f00\u653e\u5e73\u53f0 \u2192 \u5f00\u53d1\u8005\u540e\u53f0<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u4f01\u4e1a\u81ea\u5efa\u5e94\u7528 \u2192 \u8f93\u5165\u540d\u79f0<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u5e94\u7528\u80fd\u529b \u2192 \u9009\u62e9 \u673a\u5668\u4eba<\/p>\n<\/li>\n<li>\n<p>\u6743\u9650\u7ba1\u7406\u4e2d\u5fc5\u987b\u6dfb\u52a0\u4ee5\u4e0b\u6743\u9650&#xff1a;<\/p>\n<ul>\n<li>\n<p>im:message&#xff08;\u63a5\u6536\u548c\u53d1\u9001\u6d88\u606f&#xff09;<\/p>\n<\/li>\n<li>\n<p>im:message:send_as_bot&#xff08;\u4ee5\u673a\u5668\u4eba\u8eab\u4efd\u53d1\u9001&#xff09;<\/p>\n<\/li>\n<li>\n<p>contact:contact.base:readonly&#xff08;\u8bfb\u53d6\u7528\u6237\u57fa\u672c\u4fe1\u606f&#xff0c;\u5fc5\u9700&#xff01;&#xff09;<\/p>\n<\/li>\n<li>\n<p>im:resource&#xff08;\u8bfb\u53d6\u6d88\u606f\u4e2d\u7684\u8d44\u6e90\u6587\u4ef6&#xff09;<\/p>\n<\/li>\n<li>\n<p>im:chat:readonly&#xff08;\u8bfb\u53d6\u7fa4\u804a\u4fe1\u606f&#xff0c;\u53ef\u9009\u4f46\u5efa\u8bae&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4e8b\u4ef6\u4e0e\u56de\u8c03 \u2192 \u8ba2\u9605\u65b9\u5f0f\u9009 \u957f\u8fde\u63a5&#xff08;\u5bf9\u5e94 WebSocket \u6a21\u5f0f&#xff09;<\/p>\n<ul>\n<li>\n<p>\u6dfb\u52a0\u4e8b\u4ef6&#xff1a;im.message.receive_v1<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u51ed\u8bc1\u4e0e\u57fa\u7840\u4fe1\u606f \u2192 \u590d\u5236 App ID \u548c App Secret<\/p>\n<\/li>\n<li>\n<p>\u7248\u672c\u7ba1\u7406\u4e0e\u53d1\u5e03 \u2192 \u521b\u5efa\u7248\u672c\u5e76\u7533\u8bf7\u53d1\u5e03&#xff08;\u9700\u8981\u7ba1\u7406\u5458\u5ba1\u6279&#xff09;<\/p>\n<\/li>\n<hr \/>\n<h4>\u516b\u3001\u9996\u6b21\u5bf9\u8bdd\u914d\u5bf9\u6388\u6743<\/h4>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u5728\u98de\u4e66\u4e2d\u641c\u7d22\u4f60\u7684\u673a\u5668\u4eba&#xff0c;\u53d1\u9001\u4efb\u610f\u6d88\u606f&#xff08;\u5982&#034;\u4f60\u597d&#034;&#xff09;\u3002<\/p>\n<p>\u5982\u679c\u662f\u9996\u6b21\u8fde\u63a5&#xff0c;\u53ef\u80fd\u4f1a\u6536\u5230\u914d\u5bf9\u7801&#xff08;pairing code&#xff09;&#xff08;\u626b\u7801\u8fde\u63a5\u81ea\u52a8\u914d\u7f6e\u4e0d\u9700\u8981\u914d\u5bf9\u7801&#xff09;&#xff0c;\u9700\u8981\u5728\u670d\u52a1\u5668\u7aef\u6388\u6743&#xff1a;<\/p>\n<p># \u67e5\u770b\u5bb9\u5668\u65e5\u5fd7&#xff0c;\u627e\u5230\u914d\u5bf9\u7801<br \/>\ndocker logs -f hermes-agent<\/p>\n<p># \u6216\u8005\u5728\u5bb9\u5668\u5185\u6267\u884c\u6388\u6743<br \/>\ndocker exec -it hermes-agent bash<br \/>\nsource \/opt\/hermes\/.venv\/bin\/activate<br \/>\nhermes pairing approve feishu &lt;\u914d\u5bf9\u7801&gt; <\/p>\n<hr \/>\n<h4>\u4e5d\u3001\u9a8c\u8bc1\u4e0e\u8fd0\u7ef4<\/h4>\n<h5>\u67e5\u770b\u8fd0\u884c\u72b6\u6001<\/h5>\n<p># \u770b\u65e5\u5fd7<br \/>\ndocker logs -f hermes-agent<\/p>\n<p># \u6210\u529f\u6807\u5fd7<br \/>\n# [Gateway] feishu gateway connected <\/p>\n<h5>\u67e5\u770b\u914d\u7f6e\u662f\u5426\u6301\u4e45\u5316<\/h5>\n<p>cat \/mnt\/docker\/hermes-agent\/.hermes\/.env <\/p>\n<h5>\u91cd\u542f\/\u66f4\u65b0<\/h5>\n<p># \u91cd\u542f\u5bb9\u5668<br \/>\ndocker restart hermes-agent<\/p>\n<p># \u66f4\u65b0\u955c\u50cf&#xff08;\u4fdd\u7559\u914d\u7f6e&#xff09;<br \/>\ndocker pull docker.1ms.run\/nousresearch\/hermes-agent:latest<br \/>\ndocker rm -f hermes-agent<br \/>\n# \u7136\u540e\u7528\u4e0a\u9762\u7684 docker run -d &#8230; \u547d\u4ee4\u91cd\u65b0\u542f\u52a8 <\/p>\n<hr \/>\n<h4>\u5341\u3001\u5b89\u5168\u52a0\u56fa\u6e05\u5355&#xff08;\u751f\u4ea7\u73af\u5883&#xff09;<\/h4>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u9879\u76ee\u72b6\u6001\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u96f6\u7aef\u53e3\u66b4\u9732<\/td>\n<td>\u2705<\/td>\n<td>\u65e0\u00a0-p\u00a0\u53c2\u6570&#xff0c;\u670d\u52a1\u5668\u4e0d\u76d1\u542c\u4efb\u4f55\u65b0\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>\u51fa\u7ad9\u4ec5 443<\/td>\n<td>\u2705<\/td>\n<td>WebSocket \u53ea\u8d70 HTTPS\/WSS 443 \u51fa\u7ad9<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u6301\u4e45\u5316<\/td>\n<td>\u2705<\/td>\n<td>\u914d\u7f6e\u4fdd\u5b58\u5728\u5bbf\u4e3b\u673a\u00a0\/mnt\/docker\/hermes-agent<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u52a8\u91cd\u542f<\/td>\n<td>\u2705<\/td>\n<td>&#8211;restart always\u00a0\u4fdd\u969c\u9ad8\u53ef\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u6743\u9650\u6700\u5c0f\u5316<\/td>\n<td>\u26a0\ufe0f<\/td>\n<td>\u98de\u4e66\u5e94\u7528\u6743\u9650\u6309\u9700\u6388\u4e88&#xff0c;\u4e0d\u8981\u5168\u5f00<\/td>\n<\/tr>\n<tr>\n<td>\u767d\u540d\u5355\u63a7\u5236<\/td>\n<td>\u53ef\u9009<\/td>\n<td>FEISHU_ALLOWED_USERS&#061;ou_xxx,ou_yyy\u00a0\u9650\u5236\u53ef\u7528\u7528\u6237<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u5b8c\u6574\u547d\u4ee4\u901f\u67e5\u8868<\/h4>\n<p># 1. \u5b89\u88c5 Docker &#043; \u914d\u7f6e\u955c\u50cf\u52a0\u901f&#xff08;\u89c1\u4e0a\u6587&#xff09;<\/p>\n<p># 2. \u62c9\u53d6\u955c\u50cf<br \/>\ndocker pull docker.1ms.run\/nousresearch\/hermes-agent:latest<\/p>\n<p># 3. \u51c6\u5907\u76ee\u5f55<br \/>\nsudo mkdir -p \/mnt\/docker\/hermes-agent<br \/>\nsudo chmod -R 777 \/mnt\/docker\/hermes-agent<\/p>\n<p># 4. \u4ea4\u4e92\u5f0f\u914d\u7f6e&#xff08;\u8fdb\u5165\u5bb9\u5668&#xff09;<br \/>\ndocker run -it &#8211;name hermes-agent \\\\<br \/>\n  -v \/mnt\/docker\/hermes-agent:\/opt\/data \\\\<br \/>\n  &#8211;entrypoint \/bin\/bash \\\\<br \/>\n  docker.1ms.run\/nousresearch\/hermes-agent:latest<\/p>\n<p># \u5bb9\u5668\u5185\u6267\u884c&#xff1a;<br \/>\nsource \/opt\/hermes\/.venv\/bin\/activate<br \/>\nhermes setup<br \/>\n# \u6309\u5411\u5bfc\u914d\u7f6e Ollama &#043; Feishu WebSocket&#xff0c;\u4fdd\u5b58\u9000\u51fa<br \/>\nexit<\/p>\n<p># 5. \u540e\u53f0\u8fd0\u884c&#xff08;\u96f6\u7aef\u53e3&#xff09;<br \/>\ndocker rm -f hermes-agent<br \/>\ndocker run -d \\\\<br \/>\n  &#8211;name hermes-agent \\\\<br \/>\n  &#8211;restart always \\\\<br \/>\n  -v \/mnt\/docker\/hermes-agent:\/opt\/data \\\\<br \/>\n  docker.1ms.run\/nousresearch\/hermes-agent:latest \\\\<br \/>\n  gateway run<\/p>\n<p># 6. \u67e5\u770b\u65e5\u5fd7<br \/>\ndocker logs -f hermes-agent <\/p>\n<hr \/>\n<p>\u8fd9\u5957\u6d41\u7a0b\u7684\u6838\u5fc3\u4f18\u52bf\u5c31\u662f\u670d\u52a1\u5668\u4fa7\u96f6\u66b4\u9732&#xff1a;\u6ca1\u6709 -p\u3001\u6ca1\u6709\u53cd\u5411\u4ee3\u7406\u3001\u6ca1\u6709\u9632\u706b\u5899\u5165\u7ad9\u89c4\u5219&#xff0c;\u5168\u9760 WebSocket \u4e3b\u52a8 outbound \u8fde\u63a5\u98de\u4e66&#xff0c;\u914d\u5408\u4f60\u5185\u7f51\u7684 Ollama \u670d\u52a1&#xff0c;\u6574\u4e2a\u94fe\u8def\u90fd\u5728\u53ef\u63a7\u8303\u56f4\u5185\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u73af\u5883\u51c6\u5907&#xff1a;Docker \u5b89\u88c5\u4e0e\u955c\u50cf\u52a0\u901f<br \/>\n\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u8fd8\u6ca1\u88c5 Docker&#xff0c;\u5148\u5b89\u88c5\u3002\u5df2\u88c5\u5219\u8df3\u8fc7\u3002<br \/>\n# Ubuntu\/Debian \u5b89\u88c5 Docker<br \/>\nsudo apt update<br \/>\nsudo apt install -y docker.io<br \/>\nsudo systemctl enable &#8211;now docker# \u9a8c\u8bc1<br \/>\ndocker version<br \/>\n\u56fd\u5185\u670d\u52a1\u5668\u5fc5\u987b\u914d\u7f6e\u955c\u50cf\u52a0\u901f&#xff0c;\u5426\u5219\u62c9\u53d6\u5b98\u65b9\u955c\u50cf\u6781\u6162\u6216\u5931\u8d25&#xff1a;<br \/>\nsu<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,43,1388],"topic":[],"class_list":["post-85778","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","tag-43","tag-1388"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09 - \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\/85778.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u73af\u5883\u51c6\u5907&#xff1a;Docker \u5b89\u88c5\u4e0e\u955c\u50cf\u52a0\u901f \u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u8fd8\u6ca1\u88c5 Docker&#xff0c;\u5148\u5b89\u88c5\u3002\u5df2\u88c5\u5219\u8df3\u8fc7\u3002 # Ubuntu\/Debian \u5b89\u88c5 Docker sudo apt update sudo apt install -y docker.io sudo systemctl enable --now docker# \u9a8c\u8bc1 docker version \u56fd\u5185\u670d\u52a1\u5668\u5fc5\u987b\u914d\u7f6e\u955c\u50cf\u52a0\u901f&#xff0c;\u5426\u5219\u62c9\u53d6\u5b98\u65b9\u955c\u50cf\u6781\u6162\u6216\u5931\u8d25&#xff1a; su\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85778.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T14:19:21+00:00\" \/>\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\/85778.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85778.html\",\"name\":\"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T14:19:21+00:00\",\"dateModified\":\"2026-07-27T14:19:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85778.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85778.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85778.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09\"}]},{\"@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":"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09 - \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\/85778.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u73af\u5883\u51c6\u5907&#xff1a;Docker \u5b89\u88c5\u4e0e\u955c\u50cf\u52a0\u901f \u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u8fd8\u6ca1\u88c5 Docker&#xff0c;\u5148\u5b89\u88c5\u3002\u5df2\u88c5\u5219\u8df3\u8fc7\u3002 # Ubuntu\/Debian \u5b89\u88c5 Docker sudo apt update sudo apt install -y docker.io sudo systemctl enable --now docker# \u9a8c\u8bc1 docker version \u56fd\u5185\u670d\u52a1\u5668\u5fc5\u987b\u914d\u7f6e\u955c\u50cf\u52a0\u901f&#xff0c;\u5426\u5219\u62c9\u53d6\u5b98\u65b9\u955c\u50cf\u6781\u6162\u6216\u5931\u8d25&#xff1a; su","og_url":"https:\/\/www.wsisp.com\/helps\/85778.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T14:19:21+00:00","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\/85778.html","url":"https:\/\/www.wsisp.com\/helps\/85778.html","name":"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T14:19:21+00:00","dateModified":"2026-07-27T14:19:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85778.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85778.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85778.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668 Docker \u90e8\u7f72 Hermes Agent \u2192 \u98de\u4e66\uff08\u96f6\u7aef\u53e3\u66b4\u9732\uff09"}]},{"@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\/85778","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=85778"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85778\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85778"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}