I have a cluster built by docker swarm, which runs a springboot project. When I upgraded the image that it was running, and task status changed to running, LB directed me to this node, but the response was connection refused, the following is my dockerfile
FROM openjdk:11
COPY target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"]
Now I suspect that the springboot project has not fully started successfully, and the task status become running. I want to know if there is any way to make the Springboot start successfully before the task status becomes running.