cloudnativedevops / demo

Simple demonstration app for 'Cloud Native Devops'
MIT License
799 stars 517 forks source link

ERR_EMPTY_RESPONSE with hello Docker #8

Closed jhagege closed 6 years ago

jhagege commented 6 years ago

Hi guys, Looks like an amazing book ! I've been trying to launch the docker run -d -p 8080:8080 --name hello cloudnatived/demo:hello command and then access http://localhost:8080 but I get the following error:

localhost didn’t send any data. ERR_EMPTY_RESPONSE

Any idea ? Thanks !

jhagege commented 6 years ago

I think I found the issue: port defined in the Go code is 8888.

domingusj commented 6 years ago

Thanks for posting the issue @jhagege!

This example is fixed in a newer version of the book draft, but I don't think it was updated on the early release download site.

We actually updated the example to be ... -p 9999:8888 ... because some folks already had processes running on 8080, and also thought it would be helpful to show that the host port can actually be different from the container port.

Thanks again and let us know if you have any questions or find any other issues.