Running Home-Assistant with Docker as non-root user

Hey guys,

I’m new to Home-Assistant and decided to run it in a docker container. Everything works fine except the change of the user inside the container by adding the environmental variable -PUID oder -UID to my docker-compose file.

Is there a way to run the docker image as a non-root user by adding environmental variables?

Thanks,

Denqbar

I know this is an old thread, but if you are still looking for a solution, try this: https://github.com/tribut/homeassistant-docker-venv

Great stuff!

Any reason this isn’t the standard way HA is running, given the recent security scare?

Also, are there any known limitations when using this?