ERR_EMPTY_RESPONSE from docker container
I have the same problem using Dockerize GatsbyJS. As Tarun Lalwani's comment above, I resolved the problem by binding or using 0.0.0.0
as hostname
yarn develop -P 0.0.0.0 -p 8000
Adding to the accepted answer: I had the same error message trying to run docker/getting-started.
The problem was that "getting-started" is using port 80 and this was
"occupied" (netsh http show urlacl
) on my machine.
I had to use docker run -d -p 8888:80 docker/getting-started
where
8888 was an unused port. And then open "http://localhost:8888/tutorial/".
Your issue is that you are binding to the 127.0.0.1:8025
inside your code. This makes the code work from inside the container but not outside.
You need to bind to 0.0.0.0:8025
to bind to all interfaces inside the container. So traffic coming from outside of the container is also accepted by your Go app