How to Update Home Assistant in Docker Container

Here are the step by step walk though to update the Home-Assistant in Docker container.

Step 1. Stop and Delete the container

SSH to your Raspberry Pi, and then stop and delete the container using the following command

sudo docker stop home-assistant 
sudo docker rm home-assistant

Step 2. Update the packages

sudo apt-get update 
sudo apt-get upgrade

Step 3. Pull the latest container for Raspberry Pi

sudo docker pull homeassistant/raspberrypi4-homeassistant:stable

Step 4. Deploy the container

sudo docker run --init -d --restart=always --name="home-assistant" -e "TZ=Australia/Melbourne" -v /home/pi/homeassistant:/config --net=host homeassistant/raspberrypi4-homeassistant:stable

Step 5. Verify that the container have started

docker container ls -a

If all goes well you should see the running home-assistant in docker container. If that is not the case that means something is not quite right. You can check the log files using the following command

sudo docker logs home-assistant

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.