Hi,
I’m in the process of setting up Home Assistant on a NUC in docker. I’m quite new to docker so forgive me is the question is silly!
I habe Docker and docker-compose up and and running, and am running pihole and portainer successfully.
Now installing homeassistant in a container using a docker-compose.yml file for configuration:
The container start and runs without errors, but HA is not accessible on port 8123…
The only way to have is working is to comment out network_mode and use a ports: statement instead:
I understand the network_mode: host method is the recommended one ? At least this is what I take from here.
So my question would be, why is it not working and should I really care?
JF
For people having this issue – please share your operating system too. Note that unless you are actually running linux, the host driver isn’t for you (as of this writing).
The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.
Oh my god… i was trying to test home assistant on mac and i couldnt access it after starting the container. I work alot with docker at work, but i couldnt figured out what i did wrong here.