HA OS Docker vs VM? Am I overcomplicating thigs?

I’m trying to get the HA running on a micro PC. Got 3 UDB dongles for ZWave, ZigBee and Thread/Matter. I could run ZWave, but the Thread/Matter didn’t work. I know docker pretty well, but this requires a lot of knowledge of inner workings of the product/add-ons which I do not posess.

This makes me wonder if the docker idea is even the right one. Looks like with docker there is no way to easily install “add-ons”. Would like to know how do you guy run this stuff in a reliable way? I want to be able to recover things easily when something breaks down.

If your plan is to run only HA on the machine, go for HAOS. That is least knowledge demanding and most reliable method.

2 Likes

Would the HAOS backup the configuration and also historical data?

I run docker (so no add-on store) but I have all the add-ons I want in docker containers as well. There is a lot of info around but, if you let us know which ones you are interested in, I’d be happy to post the associated compose files (assuming I have the ones you want). I’m sure others can post the ones I don’t have.

Yes, Post must be at least 10 characters :roll_eyes:

Yes, it will. And installation of addons is easy.

Never had a problem with the container install method. Heard others complaining because updates breaking some add-ons. Pretty much every add-on is available as a docker image with a readme about how to set it up. The official how-to for the container install recommends running with the privileged flag, which is an absolute no-go (and I assume that HAOS also runs HA in a privileged container). I’ve heard from others that the official image is also easy to set up as non-root but I use the linuxserver image which has the non-root setup in the readme.

1 Like

Are you using Thread/Matter on docker?

That would be very helpful! Cause I’m having issues with running Thread/Matter in container: Running OTBR in Docker - #15 by D34DC3N73R

Ok, but isn’t thread/matter an integration not an add-on?

Thread and Matter are integrations, but the Matter integration needs to connect to a Matter server and the Thread integration needs to connect to a Thread Border Router.
If you do not have those services set up elsewhere, then HAOS have addons that provide the same services on the HA hardware.

There are many other such integrations that require a specific service, where HA also can provide that service, like MQTT, Homematic, Node Red, InfluxDB and so on.

That is probably the biggest obstacle overcome, when it come to running HA in docker instead of HAOS.
The second is finding the docker containers for the “addon alternatives” you want, but it is mainly a question about finding the right forum for it and you already have the first leads into that here.

I would normally recommend a HAOS installation, because the administration of it is easier, and I am not recommending HA Docker over HAOS here, but if you are comfortable with docker, then I would say the to choices are even for you.

Looks like HAOS is the way to go. Will try it today.

Is the InfluxDB what allows capture of the historical states?

1 Like

Agh, OK. I do run Mosquitto, Z2M and InfluxDB in containers but, having never used HAOS, I thought they were all add-ons

What is the Mosquitto for?

Yes, it’s a time-series database that can hold long term data. However, I’m not entirely sure how necessary it is anymore given HA now holds long term statistics.

Mosquitto is a messaging broker.

So there is another time series DB that HA come with?

What is it used for?

InfluxDB is a replacement for the DB that HA otherwise use for Long Term Statistic, which is just a file DB.
There are two DBs in HA one for short term and one for long term.
InfluxDB can replace the long term one and and MariaDB can replace the short term one.
You can also use other DBs, because the protocol used on these DBs are a SQL standard.
InfluxDB and MariaDB are just two standard replacements and they are found as official addons on HAOS.

1 Like