Hass.io under Docker on Windows 10

I’ve managed to install Hass.io into Docker on Windows 10.

This wasn’t clearly listed as an option on: Installation - Home Assistant - I just happened across it because of the text at the bottom of this page talking about Linux:

For advanced users, it is also possible to try Hass.io on your Linux server or inside a VM. To do so, follow these instructions.

Following that link to Github continues to talk about Linux, but I noticed a .PS1 file in the repository so glanced over it, before running to install. I suspect someone has kindly created this, but the docs need splitting into Linux and Windows install. If I get time I’ll fork and suggest an edit to contain the Windows bit.

PS1 ran successfully, but after 25 minutes I’m seeing no port mappings. http://hassio.local:8123 is not accessible, but then I wouldn’t expect it to be. Are there additional steps I need to perform? I only just installed Docker this morning, so I’ve no experience with it other than at a conceptual level.

Any ideas?

1 Like

Sorry this is very late, but leaving it for anyone else that might stumble upon this post. For Docker on Windows, I believe you need to setup add port proxy ipv4.

https://www.home-assistant.io/docs/installation/docker/#windows

WINDOWS
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):

netsh interface portproxy add v4tov4 listenaddress=192.168.1.10 listenport=8123 connectaddress=10.0.50.2 connectport=8123
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8123 connectaddress=10.0.50.2 connectport=8123
This will let you access your Home Assistant portal from http://localhost:8123, and if you forward port 8123 on your router to your machine IP, the traffic will be forwarded on through to the docker container.

1 Like