From fab1e0a9f9a4f0b163afc48d7a82015e1209edd1 Mon Sep 17 00:00:00 2001 From: Tim Brockman Date: Thu, 19 May 2016 16:31:35 -0400 Subject: [PATCH] Update hellonode.md to address issue #404 Lines 106-114 briefly describes reason for the Connection refused error and resolution. --- docs/hellonode.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hellonode.md b/docs/hellonode.md index 702601687e..a784d0f8d2 100755 --- a/docs/hellonode.md +++ b/docs/hellonode.md @@ -103,6 +103,14 @@ Visit your app in the browser, or use `curl` or `wget` if you’d like : $ curl http://localhost:8080 Hello World! ``` +**If you get a `Connection refused` message, your `DOCKER_HOST` address may be the address of your Docker VM, not the localhost address.** Use the `docker-machine ip default` command to find the Docker VM address. + +```shell +$ docker-machine ip default +192.168.1.100 +$ curl 192.168.1.100:8080 +Hello World! +``` Let’s now stop the container. In this example, our app was running as Docker process `2c66d0efcbd4`, which we looked up with `docker ps`: