安装 Home Assistant
step 1.
docker pull ghcr.io/home-assistant/home-assistant:stable
step 2.
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=MY_TIME_ZONE \
-v /PATH_TO_YOUR_CONFIG:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
docker run -d \
--name homeassistant \
-p 8123:8123 \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Shanghai \
-v /opt/homeassistant:/config \
--network=bridge \
ghcr.io/home-assistant/raspberrypi4-homeassistant:stable
source:
https://zhuanlan.zhihu.com/p/405570556
sudo docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Shanghai \
-v /home/pi/ha:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
source:
https://sidxul.github.io/posts/install-homeassistant/sudo docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Shanghai \
-v /home/pidocker/:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
sudo docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Shanghai \
-v /home/pidocker/:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable