Docker Community Forums

I have set up a simple spring boot project that runs as a JAR. I am then using the com.bmuschko:gradle-docker-plugin to then install this jar on an image in docker. This is similar to what is done in many existing tutorials. The problem I am having is, even though is shows as running…

When I try to go to http://localhost:8080 I get an empty response. I get the same thing if I try to go to the ip of the container as well. If I remove the port mapping from the run command I get a timeout at localhost and a empty response from the docker ip.

This leads me to believe that instead of getting the response I would expect from spring I am getting an empty response. Also I do not see the spring app act like it got the request. I am sure I am just missing a simple map or something but can someone help? My run command looks like this…