From c85d8150e97e0284de6c3d12ef912a731f6b9ec5 Mon Sep 17 00:00:00 2001 From: kevinll Date: Tue, 26 Jul 2016 14:47:56 -0700 Subject: [PATCH] Update hellonode.md updating instructions for people using Docker Toolbox on OSX. https://github.com/boot2docker/boot2docker/issues/412#issuecomment-145242855 --- docs/hellonode.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/hellonode.md b/docs/hellonode.md index 30e016745d..eac2972c53 100755 --- a/docs/hellonode.md +++ b/docs/hellonode.md @@ -104,7 +104,11 @@ $ curl http://localhost:8080 Hello World! ``` -**If you recieve a `Connection refused` message from Docker for Mac, ensure you are using the latest version of Docker (1.12 or later).** +**If you recieve a `Connection refused` message from Docker for Mac, ensure you are using the latest version of Docker (1.12 or later). Alternatively, if you are using Docker Toolbox on OSX, make sure you are using the VM's IP and not localhost :** + +```shell +$ curl "http://$(docker-machine ip YOUR-VM-MACHINE-NAME):8080" +``` Let’s now stop the container. In this example, our app was running as Docker process `2c66d0efcbd4`, which we looked up with `docker ps`: