docker pull portainer/portainer:latest
docker run -d \
--name="hass" \
--privileged \
--restart=unless-stopped \
-e TZ='Asia/Shanghai' \
-v /home/hass/config:/config \
--network=host \
homeassistant/armv7-homeassistant:latest
docker run -d \
--name="homeassistant" \
--privileged \
--restart=unless-stopped \
-e TZ='Asia/Shanghai' \
-v /home/hass/config:/config \
--network=host \
homeassistant/armv7-homeassistant:latest
-v /data/homeassistant/config这个自行修改
--network 这个一定注意,我就踩了这个坑,这个不加,导致homekit添加设备不成功。
标签:network,--,docker,玩客,config,homeassistant,hass
From: https://www.cnblogs.com/adjk/p/16841105.html