From 59538740d7f23e0fdb23ed654f860a585190cb86 Mon Sep 17 00:00:00 2001 From: Gert Jansen van Rensburg Date: Wed, 5 Dec 2018 08:04:25 +1000 Subject: [PATCH] Added command to run on docker for windows. (#7726) --- source/_docs/installation/docker.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_docs/installation/docker.markdown b/source/_docs/installation/docker.markdown index e4c0a8125b3..5013025e267 100644 --- a/source/_docs/installation/docker.markdown +++ b/source/_docs/installation/docker.markdown @@ -38,6 +38,10 @@ Alternatively, `docker-compose` works with any recent release of `docker-ce` on ### {% linkable_title Windows %} +```powershell +$ docker run -d --name="home-assistant" -v /path/to/your/config:/config -e "TZ=America/Los_Angeles" --net=host homeassistant/home-assistant +``` + 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