Unable to connect application on localhost after docker deploymnet is successful
Look at your port information :
The port 9100
of the container is published on the port 7000
on the host.
But look at your log application : it is deployed on 8080
(and not on 9100
).
What you want is publishing the container port 8080
on the 7000
port of the host such as :
docker run -p 7000:8080 foo-image
1.You need to extend SpringBootServletInitializer.Spring Boot Servlet Initializer class file allows you to configure the application when it is launched by using Servlet ContainerReference: https://www.tutorialspoint.com/spring_boot/spring_boot_tomcat_deployment.htm
2.Rename your war file from ROOT.war to something like sample.war .ROOT default app is usually Tomcat Manager