{"id":422,"date":"2024-02-17T23:48:28","date_gmt":"2024-02-17T15:48:28","guid":{"rendered":"https:\/\/sharebits.link\/?p=422"},"modified":"2024-02-17T23:54:22","modified_gmt":"2024-02-17T15:54:22","slug":"%e7%be%a4%e6%99%96nas-docker-%e5%ae%89%e8%a3%85clash%e5%8f%8ayacd","status":"publish","type":"post","link":"https:\/\/sharebits.link\/?p=422","title":{"rendered":"\u7fa4\u6656NAS docker \u5b89\u88c5Clash\u53cayacd"},"content":{"rendered":"<p>[Clash]\uff0c\u662f\u4e00\u6b3e\u4ee3\u7406\u8f6f\u4ef6\u3002\u8bb0\u5f55\u4e00\u4e0b docker \u5b89\u88c5\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h2><strong><b>\u5173\u4e8e <\/b><\/strong><a href=\"https:\/\/zskcloud.xyz\/tag\/clash\"><strong><b>clash<\/b><\/strong><\/a><\/h2>\n<p>github: <a href=\"https:\/\/zskcloud.xyz\/?golink=aHR0cHM6Ly9naXRodWIuY29tL0RyZWFtYWNyby9jbGFzaA==\">https:\/\/github.com\/Dreamacro\/clash<\/a><\/p>\n<p><a href=\"https:\/\/zskcloud.xyz\/tag\/docker\">docker<\/a>\u00a0hub: <a href=\"https:\/\/zskcloud.xyz\/?golink=aHR0cHM6Ly9yZWdpc3RyeS5odWIuZG9ja2VyLmNvbS9yL2RyZWFtYWNyby9jbGFzaA==\">https:\/\/registry.hub.docker.com\/r\/dreamacro\/clash<\/a><\/p>\n<p><strong><b><img decoding=\"async\" src=\"https:\/\/sharebits.link\/wp-content\/uploads\/2024\/02\/image.webp\" \/><\/b><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2><strong><b>\u51c6\u5907\u5de5\u4f5c<\/b><\/strong><\/h2>\n<ul>\n<li>yaml \u914d\u7f6e\u6587\u4ef6\uff08\u542b\u8ba2\u9605\u8282\u70b9\u3001\u89c4\u5219\uff0c\u4e00\u822c\u673a\u573a\u6216\u8005\u672c\u5730\u914d\u7f6e\u4e2d\u542b\u6709\uff09<\/li>\n<li>\u521b\u5efa\u6620\u5c04\u7684\u6587\u4ef6\uff0c\u6bd4\u5982<strong>\/docker\/clash<\/strong>\uff0c\u540c\u65f6\u5c06\u914d\u7f6e\u597d\u7684yaml\u4e0a\u4f20\u81f3clash\u6587\u4ef6\u5939\u3002<\/li>\n<\/ul>\n<p>\u521b\u5efaconfig.yaml\u6587\u4ef6\uff0c\u5c06\u7f16\u8f91\u4e2d\u7684\u5168\u90e8\u7c98\u8d34\u590d\u5236\u8fdb\u53bb<\/p>\n<p>\u4e3a\u4e86\u914d\u5408yacd\u4f7f\u7528\uff0c\u5c06\u4e0b\u9762\u7684\u653e\u5230config.yaml\u6587\u4ef6\u7684\u5f00\u5934<\/p>\n<pre class=\"corepress-code-pre\"><code># Port of HTTP(S) proxy server on the local end\uff08\u9ed8\u8ba4\uff09\r\nport:7890\r\n# Port of SOCKS5 proxy server on the local end\uff08\u9ed8\u8ba4\uff09\r\nsocks-port:7891\r\n# \u5f00\u542f\u5c40\u57df\u7f51\u4ee3\u7406\uff0c\u8fd9\u4e2a\u8981\u914d\u7f6etrue\r\nallow-lan:true\r\n#UI\u76d1\u542c\u7aef\u53e3\uff0c\u53ef\u4ee5\u6539\u62100.0.0.0:9090\uff0c\u6539\u540e\u53ef\u4ee5\u901a\u8fc7ui\u754c\u9762\u8bbf\u95ee\r\nexternal-controller:0.0.0.0:9090<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong><b>\u5b89\u88c5 clash<\/b><\/strong><\/h2>\n<p>\u7fa4\u6656\u5b89\u88c5Docker\u5f88\u65b9\u4fbf\uff0c\u76f4\u63a5\u5728\u5957\u4ef6\u4e2d\u5fc3\u627e\u5230container manager\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p>1.\u5728\u7fa4\u6656Docker\u6ce8\u518c\u8868\u4e2d\u641c\u7d22clash\uff0c\u627e\u5230dreamacro\/clash\uff0c\u53cc\u51fb\u52a0\u8f7d\uff0c\u9009\u62e9\u81ea\u5df1\u6240\u9700\u7684\u7248\u672c\uff0c\u6b64\u5904\u9009\u62e9 latest \u7248\u672c\u3002<\/p>\n<p><img decoding=\"async\" title=\"image.png\" src=\"https:\/\/img.sharebits.link\/images\/2024\/02\/17\/g5cl.png\" alt=\"image.png\" \/><\/p>\n<p>2.\u5728\u7fa4\u6656Docker\u6620\u50cf\u4e2d\u53cc\u51fbclash:latest\u6765\u521b\u5efa\u4e00\u4e2a\u5bb9\u5668<\/p>\n<p>3.\u5bb9\u5668\u540d\u79f0\uff1aclash<\/p>\n<p>4.\u70b9\u51fb\u300c\u9ad8\u7ea7\u9009\u9879\u300d\u8fdb\u884c\u914d\u7f6e<\/p>\n<p>\u7aef\u53e3\u6839\u636e\u4e0b\u9762\u7684\u8fdb\u884c\u8bbe\u7f6e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/img.sharebits.link\/images\/2024\/02\/17\/g5cl.png\" width=\"705\" height=\"469\" \/><\/p>\n<p>\u5b58\u50a8\u7a7a\u95f4\u8bbe\u7f6e<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"568\">\u6620\u5c04\u6587\u4ef6<\/td>\n<td width=\"568\">\u5bb9\u5668\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td width=\"568\">\/docker\/clash\/config.yaml<\/td>\n<td width=\"568\">\/root\/.config\/clash\/config.yaml<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u9700\u8981\u6ce8\u610f\u7684\u70b9<\/strong>\uff1a\u5982\u679c\u4f60\u60f3\u8fdb\u884cwebui\u754c\u9762\u7684\u7ba1\u7406\uff0cconfig.yaml\u6587\u4ef6\u5f00\u5934\u7684\u90a3\u4e32\u9700\u8981\u6dfb\u52a0\u4e0a\uff0c\u4e0d\u7136\u5728\u540e\u9762\u7684\u7ba1\u7406\u754c\u9762\u767b\u4e0d\u8fdb\u53bb\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><strong><b>\u5173\u4e8e yacd<\/b><\/strong><\/h2>\n<p>github:<a href=\"https:\/\/zskcloud.xyz\/?golink=aHR0cHM6Ly9naXRodWIuY29tL2hhaXNoYW5oL3lhY2Q=\">https:\/\/github.com\/haishanh\/yacd<\/a>dockerhub:<a href=\"https:\/\/zskcloud.xyz\/?golink=aHR0cHM6Ly9yZWdpc3RyeS5odWIuZG9ja2VyLmNvbS9yL2hhaXNoYW5oL3lhY2Qv\">https:\/\/registry.hub.docker.com\/r\/haishanh\/yacd\/<\/a><\/p>\n<p>yacd \u662f\u4e00\u6b3e\u914d\u7f6e clash \u4f7f\u7528\u7684 WebUI \u754c\u9762<\/p>\n<p>&nbsp;<\/p>\n<h2><strong><b>\u5b89\u88c5 yacd<\/b><\/strong><\/h2>\n<p>1.\u5728\u7fa4\u6656Docker\u6ce8\u518c\u8868\u4e2d\u641c\u7d22yacd\uff0c\u627e\u5230haishanh\/yacd\uff0c\u53cc\u51fb\u52a0\u8f7d\uff0c\u9009\u62e9\u81ea\u5df1\u6240\u9700\u7684\u7248\u672c\uff0c\u6b64\u5904\u9009\u62e9 latest \u7248\u672c\u3002<\/p>\n<p>2.\u5728\u7fa4\u6656Docker\u6620\u50cf\u4e2d\u53cc\u51fbyacd:latest\u6765\u521b\u5efa\u4e00\u4e2a\u5bb9\u5668<\/p>\n<p>3.\u5bb9\u5668\u540d\u79f0\uff1ayacd<\/p>\n<p>4.\u70b9\u51fb\u300c\u9ad8\u7ea7\u9009\u9879\u300d\u8fdb\u884c\u914d\u7f6e<\/p>\n<p>\uff08\u8fd9\u91cc\u5c31\u4e0d\u8981\u8fdb\u884c\u6302\u8f7d\u8def\u5f84\u4e86\uff09\u5de6\u8fb9\u7684\u7aef\u53e3\u53ef\u4ee5\u81ea\u884c\u66f4\u6539\uff0c80\u7aef\u53e3\u4e0d\u8981\u4fee\u6539<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.sharebits.link\/images\/2024\/02\/17\/g5cl.png\" \/><\/p>\n<h2><strong><b>\u4f7f\u7528\u65b9\u6cd5<\/b><\/strong><\/h2>\n<p><strong>\u5982\u679c\u4f60\u7684\u7fa4\u6656NAS\u6240\u5728\u673a\u5668\u7684ip\u4e3a <\/strong><strong>192.168.1.22<\/strong><\/p>\n<p>\u90a3\u4e48\u6211\u4eec\u5c31\u8bbf\u95ee 192.168.1.22:9070\uff0c\u53ef\u4ee5\u770b\u5230\u767b\u5f55\u754c\u9762<\/p>\n<p>\u9996\u5148\u6211\u4eec\u5728config.yaml\u914d\u7f6e\u6587\u4ef6\u4e2d\u914d\u7f6e\u597d\u4e86ui\u7684\u76d1\u542c\u7aef\u53e3\u4e3a9090\uff0c\u6240\u4ee5\u76f4\u63a5\u5728\u7ea2\u6846\u5904\u586b\u5165<\/p>\n<p>http:\/\/192.168.1.22:9900\/\u5c31\u53ef\u4ee5\u8fdb\u5165\u7ba1\u7406\u754c\u9762<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.sharebits.link\/images\/2024\/02\/17\/gGua.png\" \/><\/p>\n<p><strong>\u6700\u540e\u7684\u6700\u540e\u5982\u679c\u540e\u9762\u9700\u8981\u66f4\u6362\u914d\u7f6e\u6587\u4ef6\u53ea\u9700\u8981\u5c06config.yaml\u4e2d\u7684\u914d\u7f6e\u4fe1\u606f\u4fee\u6539\u5373\u53ef\u3002\u5f53\u7136\u7aef\u53e3\u5404\u4f4d\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u6765\u8fdb\u884c\u66f4\u6539\uff01<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Clash]\uff0c\u662f\u4e00\u6b3e\u4ee3\u7406\u8f6f\u4ef6\u3002\u8bb0\u5f55\u4e00\u4e0b docker \u5b89\u88c5\u7684\u914d\u7f6e\u6587\u4ef6\u3002 \u5173\u4e8e clash github: h [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100,1],"tags":[],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-100","category-shouye"],"_links":{"self":[{"href":"https:\/\/sharebits.link\/index.php?rest_route=\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sharebits.link\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sharebits.link\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sharebits.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sharebits.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=422"}],"version-history":[{"count":0,"href":"https:\/\/sharebits.link\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions"}],"wp:attachment":[{"href":"https:\/\/sharebits.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sharebits.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sharebits.link\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}