HASS, Docker, Networking and Discovery

Using Portainer to manage my containers, --net=host, how can I specify that?
If I open the container Homeassistant, all th way down, I see that I’am connected to Host network
image
If this the same as stateing --net=host in startup?
Sorry, quite a newbie on hassio/docker

I second this. After spending the last week stuffing around trying to get everything to work, this little gem solved the issue.

I just want to add to this conversation in case anyone is using docker desktop for mac and running into host networking issues. I switched to Rancher Desktop for mac (not using Kubernetes and selecting Moby for the engine) and added the host network in the compose file. After install, in home assistant under SETTINGS/NETWOK there are now options for selecting the adapter to use, one of those is an adapter that will allow for device discovery and awareness like a host adapter. This was a totally acceptable solution for me, hopefully it will work for someone in the future.

2 Likes