{"id":167991,"date":"2020-10-17T23:23:22","date_gmt":"2020-10-17T15:23:22","guid":{"rendered":"http:\/\/4563.org\/?p=167991"},"modified":"2020-10-17T23:23:22","modified_gmt":"2020-10-17T15:23:22","slug":"docker%e7%89%88nextcloud%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8docker%e7%89%88aria2-%ef%bc%9f-%e9%85%ac%e8%b0%a2%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=167991","title":{"rendered":"docker\u7248nextcloud\u5982\u4f55\u8c03\u7528docker\u7248aria2 \uff1f \u916c\u8c22\uff01"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Delly<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>docker\u7248nextcloud\u5982\u4f55\u8c03\u7528docker\u7248aria2 \uff1f \u916c\u8c22\uff01<\/h3>\n<p>  \t\tdocker\u7248nextcloud\u5982\u4f55\u8c03\u7528docker\u7248aria2 \uff0c\u76f4\u63a5\u5b89\u88c5\u7684nextcloud\u53ef\u4ee5\u901a\u8fc7ocdownloader\u6765\u8c03\u7528aria2\uff0c\u4f46\u662f\u6211\u9700\u8981\u7684\u662f\u5355\u72ec\u7684docker\u7248\u7684aria2\uff08\u56e0\u4e3a\u6709\u66f4\u597d\u7684\u529f\u80fd\uff09\uff0c\u53ea\u662f\u4e0d\u77e5\u9053\u5982\u4f55\u8ba9\u8fd9\u4e24\u4e2a\u5bb9\u5668\u76f8\u4e92\u901a\u4fe1\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u8ba9nextcloud\u8c03\u7528aria2\uff0c\u6709\u82f1\u6587\u7248\u7684\u89e3\u51b3\u601d\u8def\uff0c\u4f46\u662f\u770b\u4e0d\u592a\u61c2\uff0c\u7b80\u5355\u8bd5\u4e86\u4e0b\u4e5f\u6ca1\u6210\u529f\u3002\uff08https:\/\/github.com\/e-alfred\/ocdownloader\/issues\/41\uff09\u8bf7\u6709\u80fd\u529b\u7684\u5927\u4f6c\u5e2e\u5f04\u4e0b\uff0c\u6709\u916c\u8c22\u3002   \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ontochom<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6bd4\u8f83\u7b80\u5355\u7684\u529e\u6cd5\uff1a<br \/>  https:\/\/docs.docker.com\/network\/network-tutorial-standalone\/#use-user-defined-bridge-networks<br \/>  1. \u5efa\u7acb\u4e00\u4e2aDocker network \uff08\u6559\u7a0b\u7b2c\u4e00\u6b65\uff09<br \/>  2. \u5efa\u7acbAria2\u6216\u8005Nextcloud container \uff08\u6559\u7a0b\u7b2c\u4e09\u6b65\uff09<br \/>  3. \u8bbe\u7f6eAria2\u94fe\u63a5<\/p>\n<p>  \u5047\u8bbe\u4f60Aria2 container\u53eb aria\uff0c \u90a3\u4e48\u94fe\u63a5\u5c31\u5e94\u8be5\u662f http:\/\/aria:\u7aef\u53e3\u53f7\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Delly<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7f51\u4e0a\u7684\u89e3\u51b3\u65b9\u6848\u662f\uff1aUsing Aria2 in a separate container (https:\/\/github.com\/P3TERX\/docker-aria2-pro) and changing the host in ocdownloader\/controller\/lib\/aria2.php:<br \/>  self::$Server = &#8216;http:\/\/aria2:6800\/jsonrpc&#8217;;<br \/>  works like a charm.<br \/>  \u4ed6\u7684\u89e3\u51b3\u65b9\u6848\u8c8c\u4f3c\u5c31\u662f\u4fee\u6539host\u4e3b\u673aocdownloader\/controller\/lib\/aria2.php\u7684\u8fd9\u4e2a\u6587\u4ef6\uff0c\u628a\u539f\u6765\u7684\u6539\u4e3aself::$Server = &#8216;http:\/\/aria2:6800\/jsonrpc&#8217;; \u4f46\u662f\u7167\u505a\u4e86\uff0c\u6ca1\u6709\u6210\u529f\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5b9d\u4e3d\u91d1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tocDownloader \u53ea\u80fd\u4e0e\u672c\u673a\u4ea4\u4e92 \u4e0d\u652f\u6301rpc-secret\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kerui<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8bd5\u8bd5docker link\uff1f<\/p>\n<p>  \u6211\u6ca1\u8bd5\u8fc7\uff0c\u72ec\u7acb\u90e8\u7f72\u7684\uff0c\u7136\u540enc\u6302\u8f7d\u4e0b\u8f7d\u76ee\u5f55\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>suantong<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u516c\u7528\u4e00\u4e2a\u7f51\u7edc\u5c31\u53ef\u4ee5\uff0c\u5f88\u7b80\u5355\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hjvn2211445<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdocker &#8211;net=host\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Delly<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tontochom \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-10-17 10:35<br \/>  \u6bd4\u8f83\u7b80\u5355\u7684\u529e\u6cd5\uff1a<br \/>  https:\/\/docs.docker.com\/network\/network-tutorial-standalone\/#use-user-defined-bridg &#8230;<\/p>\n<p> \u591a\u8c22\uff01\u4e5f\u5c31\u662faria2 \u548cnextcloud\u5728\u540c\u4e00\u4e2a\u6865\u63a5\u7f51\u7edc\u5f53\u4e2d\u662f\u5427\u3002aria2\u4ee5\u6865\u63a5\u800c\u4e0d\u662f\u4ee5host\u65b9\u5f0f\u8fde\u63a5\u5916\u7f51\uff0c\u662f\u4e0d\u662f\u4f1a\u5f71\u54cdp2p\u6548\u7387\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Delly<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tontochom \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-10-17 10:35<br \/>  \u6bd4\u8f83\u7b80\u5355\u7684\u529e\u6cd5\uff1a<br \/>  https:\/\/docs.docker.com\/network\/network-tutorial-standalone\/#use-user-defined-bridg &#8230;<\/p>\n<p> \u8fd8\u6709\uff0cnextcloud\u5185\u90e8\u7528\u4ec0\u4e48\u4e0b\u8f7d\u5668\u8c03\u7528aria2? \u8c8c\u4f3cocdownloader\u4e0d\u652f\u6301rpc\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5929\u9f99<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tDelly \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-10-17 12:21<br \/>  \u8fd8\u6709\uff0cnextcloud\u5185\u90e8\u7528\u4ec0\u4e48\u4e0b\u8f7d\u5668\u8c03\u7528aria2? \u8c8c\u4f3cocdownloader\u4e0d\u652f\u6301rpc<\/p>\n<p> \u4e0d\u7528ocdownloader\uff0c\u7528aria2\u7684ariaNG\u4e5f\u4e00\u6837\uff0c\u66f4\u7b80\u5355\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Delly \u5927\u4f6c\u6709\u8bdd\u8bf4 : doc&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167991"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167991"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/167991\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167991"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}