Skip to content

Commit 5953874

Browse files
gertjvrfabaff
authored andcommitted
Added command to run on docker for windows. (home-assistant#7726)
1 parent 8b5e61b commit 5953874

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/_docs/installation/docker.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Alternatively, `docker-compose` works with any recent release of `docker-ce` on
3838

3939
### {% linkable_title Windows %}
4040

41+
```powershell
42+
$ docker run -d --name="home-assistant" -v /path/to/your/config:/config -e "TZ=America/Los_Angeles" --net=host homeassistant/home-assistant
43+
```
44+
4145
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):
4246
```
4347
netsh interface portproxy add v4tov4 listenaddress=192.168.1.10 listenport=8123 connectaddress=10.0.50.2 connectport=8123

0 commit comments

Comments
 (0)