testdocker run -d --name="ha" -e "TZ=Europe/Sofia" -v "/homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable
TZ=Asia/Shanghai
docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable
docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable
docker run -d --name="hadocker" -e "TZ=Asia/Shanghai" -v "/home/homeassistantdocker20240104:/config" -p 58123:8123 ghcr.io/home-assistant/home-assistant:stable
docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103/.homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable
docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103/.homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable
docker run host
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-v ./config:/config \
-v /run/dbus:/run/dbus:ro \
-e TZ=$TIMEZONE \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
docker run -d\
--name="ha"\
-e "TZ=Asia/Shanghai"\
--network=host\
-v "/home/homeassistant20221103/.homeassistant:/config"\
-p 38123:8123\
ghcr.io/home-assistant/home-assistant:stable
docker run -d \
--name ha2 \
-v /home/homeassistant20221103/.homeassistant:/config \
-e TZ=Asia/Shanghai \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
直通模式不能指定端口
.homeassistant
docker run -d --name ha \
-v /home/homeassistant20221103:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable