I installed Hass.io on Windows 10 with Docker Desktop using Linux containers. The installation instructions on https://www.home-assistant.io/docs/installation/docker/ state you should run this command:
docker run --init -d --name="home-assistant" -e "TZ=America/Los_Angeles" -v //c/Users/<your login name>/homeassistant:/config --net=host homeassistant/home-assistant:stable
And then further:
" When running Home Assistant in Docker on Windows, you may have some difficulty getting ports to map for routing (since the --net=host
switch actually applies to the hypervisorâs network interface). To get around this, you will need to add port proxy ipv4 rules to your local Windows machine, like so (Replacing â192.168.1.10â with whatever your Windows IP is, and â10.0.50.2â with whatever your Docker containerâs IP is):"
The problem is when you use --net=host
your hass.io container wonât have an IP since itâs using the host IP. But you do need to do the port mapping in order to access your hass.io interface. To get this to work you need to remove the --net=host
command from the âdocker runâ. Then you can get the IP address of the container by doing docker inspect . You also need to add -p 8123:8123
for the port mapping to work so the docker run command that works is:
docker run --init -d -e "TZ=America/Denver" -v //c/Users/<your login name>/homeassistant:/config -p 8123:8123 <home assistant container id**