瀏覽代碼

Updated Viewing App when on OSX

Added section to show how to get IP address and view running python app if the user is using boot2docker on OSX

Docker-DCO-1.1-Signed-off-by: Richard Harvey <richard@squarecows.com> (github: richarvey)

Docker-DCO-1.1-Signed-off-by: Richard Harvey <richard@squarecows.com> (github: SvenDowideit)
Richard Harvey 11 年之前
父節點
當前提交
2c5405f699
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/sources/userguide/usingdocker.md

+ 8 - 0
docs/sources/userguide/usingdocker.md

@@ -183,6 +183,14 @@ see the application.
 
 Our Python application is live!
 
+> **Note:**
+> If you have used boot2docker on OSX you'll need to get the IP of the virtual host instead of using localhost. You can do this by running the following in the boot2docker shell.
+> 
+>     $ boot2docker ip
+>     The VM's Host only interface IP address is: 192.168.59.103
+> 
+> In this case you'd browse to http://192.168.59.103:49155 for the above example
+
 ## A Network Port Shortcut
 
 Using the `docker ps` command to return the mapped port is a bit clumsy so