From 9dc2d0b8a35724946139f954f9575411b31695ea Mon Sep 17 00:00:00 2001 From: Yongzhi Pan Date: Mon, 19 Jan 2015 16:15:27 +0800 Subject: [PATCH] Add usage of port mapping for Boot2docker. Signed-off-by: Yongzhi Pan --- docs/sources/examples/nodejs_web_app.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sources/examples/nodejs_web_app.md b/docs/sources/examples/nodejs_web_app.md index 39af59afc3..7358a3f50f 100644 --- a/docs/sources/examples/nodejs_web_app.md +++ b/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 +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 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/).