{"id":355,"date":"2023-07-19T15:58:51","date_gmt":"2023-07-19T07:58:51","guid":{"rendered":"http:\/\/blog.naspro.cc\/?p=355"},"modified":"2023-07-19T16:06:21","modified_gmt":"2023-07-19T08:06:21","slug":"%e7%be%a4%e6%99%96%e5%ae%89%e8%a3%85docker%e7%89%88nodered-%e5%b9%b6%e4%b8%94%e6%b7%bb%e5%8a%a0%e5%af%86%e7%a0%81%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/blog.naspro.cc\/?p=355","title":{"rendered":"\u7fa4\u6656\u5b89\u88c5Docker\u7248NodeRed \u5e76\u4e14\u6dfb\u52a0\u5bc6\u7801\u6559\u7a0b"},"content":{"rendered":"<p>\u9274\u4e8e\u73b0\u5728\u7fa4\u6656\u7684Docker\u6ce8\u518c\u8868\u5904\u4e8e\u762b\u75ea\u72b6\u6001\uff0c\u6211\u4eec\u4f7f\u7528\u955c\u50cfSSH\u76f4\u63a5pull \u955c\u50cf<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-flat ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/blog.naspro.cc\/?p=355\/#%e4%b8%8b%e8%bd%bdnodered%e9%95%9c%e5%83%8f\" title=\"\u4e0b\u8f7dNodeRed\u955c\u50cf\">\u4e0b\u8f7dNodeRed\u955c\u50cf<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/blog.naspro.cc\/?p=355\/#%e9%85%8d%e7%bd%aenodered%e9%95%9c%e5%83%8f\" title=\"\u914d\u7f6eNodeRed\u955c\u50cf\">\u914d\u7f6eNodeRed\u955c\u50cf<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/blog.naspro.cc\/?p=355\/#%e4%bf%ae%e6%94%b9nodered_%e5%af%86%e7%a0%81\" title=\"\u4fee\u6539nodered \u5bc6\u7801\">\u4fee\u6539nodered \u5bc6\u7801<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"%e4%b8%8b%e8%bd%bdnodered%e9%95%9c%e5%83%8f\"><\/span>\u4e0b\u8f7dNodeRed\u955c\u50cf<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Node-RED: <a href=\"https:\/\/hub.docker.com\/r\/nodered\/node-red\">https:\/\/hub.docker.com\/r\/nodered\/node-red<\/a><br \/>\n\u955c\u50cf\u5730\u5740\uff1a <a href=\"https:\/\/dockerproxy.com\/\">https:\/\/dockerproxy.com\/<\/a><br \/>\n\u955c\u50cf\u4e2d\u641c\u7d22 <\/p>\n<blockquote>\n<p>nodered\/node-red<\/p>\n<\/blockquote>\n<p>\u4f9d\u636e\u63d0\u793a\u5728\u547d\u4ee4\u884c\u91cc\u4e00\u53e5\u4e00\u884c<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/pgvnuy-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"%e9%85%8d%e7%bd%aenodered%e9%95%9c%e5%83%8f\"><\/span>\u914d\u7f6eNodeRed\u955c\u50cf<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u5728\u7fa4\u6656DOCKER\u6620\u50cf\u91cc\u627e\u5230NODERED\u7684\u955c\u50cf<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/phqnvn-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><br \/>\n\u5b58\u50a8\u7a7a\u95f4\u5730\u5740\u4e3a\u672c\u5730\u5730\u5740  \u88c5\u8f7d\u8def\u5f84 \/data \u4e0d\u8981\u6539<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/pioz0i-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><br \/>\n\u7f51\u7edc\u9009HOST \u5982\u679c\u4e0d\u9009Host \u53ef\u80fd\u627e\u4e0d\u5230Home Assisant \u4e2d\u7684\u8bbe\u5907<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/pip40u-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><br \/>\n\u6dfb\u52a0 TZ=Asia\/Shanghai \u53d8\u91cf<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/qjoroq-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><\/p>\n<p>\u4fdd\u5b58 \u8bbf\u95eeIP:1880 \u5e94\u8be5\u5c31\u53ef\u4ee5\u6253\u5f00\u5df2\u7ecf\u642d\u5efa\u597d\u7684NODERED\u4e86<\/p>\n<p>\u6216\u8005\u4f7f\u7528\u547d\u4ee4\u884c\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code>docker run -it -p 1880:1880 --name=nodered --restart=always --user=root --net=host -v \/volume1\/docker\/nodered:\/data -e TZ=Asia\/Shanghai nodered\/node-red<\/code><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"%e4%bf%ae%e6%94%b9nodered_%e5%af%86%e7%a0%81\"><\/span>\u4fee\u6539nodered \u5bc6\u7801<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>SSH\u767b\u5f55\u7fa4\u6656 \u5207\u6362ROOT\u8d26\u53f7<br \/>\n\u8f93\u5165\u547d\u4ee4<br \/>\n<code>cd \/volume1\/docker<\/code><br \/>\n\u6211\u7684\u7f6e\u7684\u8def\u5f84\u662f\u5728 \/volume1\/docker<br \/>\n\u76f4\u63a5\u7528\u547d\u4ee4chmod -R 777 nodered \u8d4b\u7ed9nodered\u6587\u4ef6\u5939\u6240\u6709\u6743\u9650<br \/>\n\u4e0d\u7ed9\u6743\u9650\uff0c\u65e0\u6cd5\u4fdd\u5b58\u4fee\u6539\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4fee\u6539\u5b8c\u540e\uff0c\u91cd\u65b0\u8d77\u52a8NODERED\u5bb9\u5668<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/pnoo96-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><br \/>\n\u6253\u5f00 <a href=\"https:\/\/www.jisuan.mobi\/nX7.html\">https:\/\/www.jisuan.mobi\/nX7.html<\/a> Bcrypt\u5bc6\u7801\u751f\u6210\u8ba1\u7b97\u5668 \u628a\u751f\u6210\u7684\u5bc6\u7801\u66ff\u6362\u6389\u4e0a\u9762\u7684\u5bc6\u7801<br \/>\n\u4fdd\u5b58\u91cd\u542f<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/povvti-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><br \/>\n\u518d\u6b21\u6253\u5f00 \u63d0\u793a\u8f93\u5165\u4e4b\u524d\u8bbe\u7f6e\u7684\u8d26\u53f7\u5bc6\u7801\u5373\u53ef<br \/>\n<img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/19\/ppuw50-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><\/p>\n<p>\u8865\u5145\uff1a\u5982\u679c\u4e0d\u4fee\u6539\u7684\u8bdd\u9ed8\u8ba4\u8d26\u53f7\u5bc6\u7801\u4e3a admin  password<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9274\u4e8e\u73b0\u5728\u7fa4\u6656\u7684Docker\u6ce8\u518c\u8868\u5904\u4e8e\u762b\u75ea\u72b6\u6001\uff0c\u6211\u4eec\u4f7f\u7528\u955c\u50cfSSH\u76f4\u63a5pull \u955c\u50cf \u4e0b\u8f7dNodeRed\u955c\u50cf Node-RED: https:\/\/hub.docker.com\/r\/nodered\/node-red \u955c\u50cf\u5730\u5740\uff1a https:\/\/dockerproxy.com\/ \u955c\u50cf\u4e2d\u641c\u7d22 nodered\/node-red \u4f9d\u636e\u63d0\u793a\u5728\u547d\u4ee4\u884c\u91cc\u4e00\u53e5\u4e00\u884c \u914d\u7f6eNodeRed\u955c\u50cf \u5728\u7fa4\u6656DOCKER\u6620\u50cf\u91cc\u627e\u5230 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,3],"tags":[40],"class_list":["post-355","post","type-post","status-publish","format-standard","hentry","category-home-assistant","category-internet","tag-node-red"],"_links":{"self":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=355"}],"version-history":[{"count":0,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/355\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}