安装
docker run -d \ --name homeassistant \ --privileged \ --restart=unless-stopped \ -e TZ=Asia/Chongqing \ -v /home/l/hal/config:/config \ --network=host \ ghcr.io/home-assistant/home-assistant:stable
更新
# if this returns "Image is up to date" then you can stop here docker pull ghcr.io/home-assistant/home-assistant:stable # stop the running container docker stop homeassistant # remove it from Docker's list of containers docker rm homeassistant # finally, start a new one docker run -d \ --name homeassistant \ --privileged \ --restart=unless-stopped \ -e TZ=Asia/Chongqing \ -v /home/l/hal/config:/config \ --network=host \ ghcr.io/home-assistant/home-assistant:stable