Official docker image runs HASS as root

Is the a reason the official HASS core docker image runs the process as root and does not honour the PUID and PGID variables? Asking here before opening a bug for the image because non-system processes should never run as root.

I suggest you search these forums & closed GitHub issues before you do that. I’m pretty sure there are multiple threads on this subject already.

EDIT: here you go, these are just the first 3 results I found in these forums. I’m sure there’s plenty more:

2 Likes

@ShadowFist Thanks for the info and the search results. It is extremely disappointing the HASS team took this stance re running at root. Running an application as root is very very very very poor practice under any circumstance. Sadly, this will now force me back to running HASS under native OS in a python environment.

If this means running HA as Core or Supervised, I don’t have good news for you. Those installation types were removed a week ago after a 6-month deprecation notice.

Read the linked thread for alternatives - I suggest HAOS under Proxmox, though I’m not sure whether it runs as root or whether you can change that.

Which is not supported. There are third party images which support running as non-root. These aren’t directly supported either but I feel like it’s still better than plain core.

It uses the same images. This is Inside of HAOS

# docker top homeassistant | awk {'print $1'} | uniq
UID
root

Not good news at all. Just catching up on these drastic changes. I was stuck on 2025.1 for almost a year. I will remain on 2025.11 for the foreseeable future.