Skip to content

Commit 3d8d239

Browse files
iDVBfabaff
authored andcommitted
docs(docker-install): Add OSX port forwarding note (home-assistant#1925)
- Add note to people on OS X about how to properly forward ports so that you can browse to http://localhost:8123 - This tripped me and a co-worker up a fair bit so I'm hoping it will save others a good deal of googling.
1 parent 273bcb7 commit 3d8d239

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/getting-started/installation-docker.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This will launch Home Assistant and serve the web interface from port 8123 on yo
1919

2020
<p class='note'>
2121
When using boot2docker on OS X you are unable to map the local time to your Docker container. Replace `-v /etc/localtime:/etc/localtime:ro` with `-e "TZ=America/Los_Angeles"` (replacing America/Los_Angeles with [your timezone](http://en.wikipedia.org/wiki/List_of_tz_database_time_zones))
22+
23+
Additionally, if your expectation is that you will be able to browse directly to `http://localhost:8123` on your OS X host, then you will also need to replace the `--net=host` switch with `-p 8123:8123`. This is currently the only way to forward ports on to your actual host(OS X) machine instead of the virtual machine inside xhyve. More detail on this can be found in [the docker forums](https://forums.docker.com/t/should-docker-run-net-host-work/14215/10).
2224
</p>
2325

2426
If you change the config you have to restart the server.

0 commit comments

Comments
 (0)