docs icon indicating copy to clipboard operation
docs copied to clipboard

localhost curl: (7) Failed to connect to localhost port 5040: Connection refused

Open rberge opened this issue 9 years ago • 2 comments

File: get-started/part2.md, CC @johndmulhausen I have Mac Sierra. I spent a while on this one point in the instructions where it says to run this at the command line docker run -p 4000:80 friendlyhello

I got the curl error refused to connect and the similar error in Safari and Chrome. Finally I found a reference to lookup the Docker forum with an answer from nathanleclaire Docker Staff which said to use "docker-machine ip default" to find the equivalent to localhost (if I understand him correctly).

It would seem reasonable to tell people who are doing the tutorial that you don't literally meant to type "localhost" in the browser. Or maybe that works for you. I just wanted to get through this tutorial and use Docker but unfortunately had to spend a lot of time figuring out something that could have been in the tutorial.

rberge avatar Nov 27 '17 02:11 rberge

Closing this ticket due to its age, and the impending refactor. If you think this is in error, feel free to reopen. Thanks!

ghost avatar Jan 02 '19 15:01 ghost

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 11 '23 03:03 docker-robott