2024年11月21日星期四 下午5:12:13

Home Assistant docker: upgrade-backup old home assistant docker and Install new home assistant docker

9 个月 前
#28517 引用
Home Assistant docker: upgrade-backup old home assistant docker and Install new home assistant docker

https://blog.matterxiaomi.com/blog/how-to-install-uninstall-and-reinstall-update-home-assistant-docker-in-debian/
0
9 个月 前
#28518 引用
Before you run home assistant in docker you need to first decide where you will store persistent data.

Docker has two options:

Volumes
Bind mounts



https://stevessmarthomeguide.com/running-home-assistant-in-a-docker-container/




0
9 个月 前
#28520 引用
backup old home assistant docker and Install new home assistant docker
How to update Home Assistant Docker Container - Using a Bind mount with Home Assistant docker


# Get the current name of your container and version
sudo docker ps

# Stop the running container
sudo docker stop ha

# Backing up Configuration
docker inspect ha

# Create a backup
sudo cp  -r  /path/to/local/data/ /databackup/path/to/local/data

# delete  the running container
sudo docker rm ha

#
docker rmi homeassistant

# Pull the latest container from github
docker pull ghcr.io/home-assistant/home-assistant:stable

# exit the virtual environment and
# start home assistant and check logs for errors
deactivate
sudo service hass start
# check logs


Home Assistant: upgrade to Python 3.8
https://iotechonline.com/home-assistant-upgrade-to-python-3-8/
0
2 周 前
#47744 引用

docker run -d --name ha \
--restart=always \
-v /data/homeassistant202405:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
0