backup old home assistant docker and Install new home assistant dockerHow 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/