When you get this error it means you've exposed the right port in your Dockerfile, but you have to make sure the app within your container is binding to instead of localhost or

I got this error using Angular CLI's ng serve within a container. I had to add --host= to the ENTRYPOINT arguments. If you're using a different framework check for a similar command-line argument, configuration parameter or setting.