{"id":167,"date":"2022-01-14T11:12:47","date_gmt":"2022-01-14T03:12:47","guid":{"rendered":"https:\/\/wind.thrombocytes.dns.army\/?p=167"},"modified":"2022-09-25T18:20:14","modified_gmt":"2022-09-25T10:20:14","slug":"docker-%e9%83%a8%e7%bd%b2homeassitant","status":"publish","type":"post","link":"https:\/\/wind.25978848.xyz\/index.php\/2022\/01\/14\/docker-%e9%83%a8%e7%bd%b2homeassitant\/","title":{"rendered":"docker \u90e8\u7f72homeassitant"},"content":{"rendered":"<p>docker network create -d macvlan &#8211;subnet=192.168.10.0\/24 &#8211;gateway=192.168.10.7 -o parent=eth0 macnet1<br \/>\ndocker run -d &#8211;restart=always &#8211;network macnet1 &#8211;ip=192.168.10.200 -p 8123:8123 &#8211;privileged &#8211;name=&#8221;homeassistants&#8221; -e TZ=Asia\/Shanghai -v \/etc\/localtime:\/etc\/localtime:ro -v \/root\/homeassistant:\/config homeassistant\/home-assistant<br \/>\n\u73a9\u5ba2\u4e91\u90e8\u7f72 docker run -d &#8211;restart=always &#8211;network  host &#8211;privileged &#8211;name=&#8221;homeassistants&#8221; -e TZ=Asia\/Shanghai -v \/etc\/localtime:\/etc\/localtime:ro -v \/mnt\/mmcblk2p4\/docker\/homeassistant:\/config homeassistant\/home-assistant<\/p>\n<p>ifconfig eth0 promisc \u8bbe\u7f6e\u7f51\u5361\u4e3a\u6df7\u6742\u6a21\u5f0f<br \/>\nifconfig eth0 -promisc \u53d6\u6d88 \u6df7\u6742\u6a21\u5f0f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>docker network create -d macvlan &#8211;subnet=192.168. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":11,"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wind.25978848.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}