Common Tasks - Container


Update

Best practice for updating a Home Assistant installation:

  1. Backup your installation.
  2. Check the release notes for breaking changes on Home Assistant release notes. Be sure to check all release notes between the version you are running and the one you are upgrading to. Use the search function in your browser (CTRL + f / CMD + f) and search for Breaking Changes.

First start with pulling the new container.

docker pull ghcr.io/home-assistant/home-assistant:stable

You then need to recreate the container with the new image.

docker-compose pull homeassistant
docker-compose up -d

Run a specific version

In the event that a Home Assistant Core version doesn’t play well with your hardware setup, you can downgrade to a previous release. In this example 2023.10.1 is used as the target version but you can choose the version you desire to run.

docker pull ghcr.io/home-assistant/home-assistant:2023.10.1

You then need to recreate the container with the new image.

Run a beta version

If you would like to test next release before anyone else, you can install the beta version.

docker pull ghcr.io/home-assistant/home-assistant:beta

You then need to recreate the container with the new image.

Run a development version

If you want to stay on the bleeding-edge Home Assistant Core development branch, you can upgrade to dev.

The dev branch is likely to be unstable. Potential consequences include loss of data and instance corruption.

docker pull ghcr.io/home-assistant/home-assistant:dev

You then need to recreate the container with the new image.

Configuration check

If your container name is something other than homeassistant, change that part in the examples below.

Run the full check:

docker exec homeassistant python -m homeassistant --script check_config --config /config

Listing all loaded files:

docker exec homeassistant python -m homeassistant --script check_config --files

Viewing an integration’s configuration (light in this example):

docker exec homeassistant python -m homeassistant --script check_config --info light

Or all integrations’ configuration

docker exec homeassistant python -m homeassistant --script check_config --info all

You can get help from the command line using:

docker exec homeassistant python -m homeassistant --script check_config --help