Pārlūkot izejas kodu

Add usage of port mapping for Boot2docker.

Signed-off-by: Yongzhi Pan <panyongzhi@gmail.com>
Yongzhi Pan 10 gadi atpakaļ
vecāks
revīzija
9dc2d0b8a3
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      docs/sources/examples/nodejs_web_app.md

+ 5 - 0
docs/sources/examples/nodejs_web_app.md

@@ -181,6 +181,11 @@ Now you can call your app using `curl` (install if needed via:
 
 
     Hello world
     Hello world
 
 
+If you use Boot2docker on OS X, the port is actually mapped to the Docker host VM,
+and you should use the following command:
+
+    $ curl $(boot2docker ip):49160
+
 We hope this tutorial helped you get up and running with Node.js and
 We hope this tutorial helped you get up and running with Node.js and
 CentOS on Docker. You can get the full source code at
 CentOS on Docker. You can get the full source code at
 [https://github.com/enokd/docker-node-hello/](https://github.com/enokd/docker-node-hello/).
 [https://github.com/enokd/docker-node-hello/](https://github.com/enokd/docker-node-hello/).