Re home assistant debian Oliver

hi

I have installed home assistant as a docker on Debian 19 but can’t get discovery to work

and how do I run home assistant --net=host parameter

thanks Oliver

Are you managing docker from command line or from GUI (Portainer)?

yep docker in the command line

It is rather difficult to do this on command line because you would have to remove and create the container again. This should not be a problem if you have created a volume where you HA config resides in so it does not get deleted when removing the container.

But an easy way to manage docker is using Portainer. Pretty much any thing can be done through the UI and much much more.

Portainer

If you prefer to not use Portainer. See this guide. it describes both methods.

but how would I get discovery to work on there page someone else said about doing this The suggested solution is to run the docker image with the --net=host parameter.

You can easily change the network to host in Portainer. It is much more difficult to do it in command line. Especially for non pro users. That’s is the reason i use it.

And yes, discovery should work when you set it to host mode. :smile:

ok thanks I will install Prtainer to change it

Please mark my first answer as the solution so others know it to :smile:

I have installed that

all I do now it change the network to host

When you are in the UI, you open the container by pressing on its name and then at the bottom there is a drop down list where you can select host. You should stop the container first and then change it. Remember to remove the other network adapter that is in the list below the dropdown list :smile: