I am trying to deploy a Java Web application into the Tomcat Container
docker run -d -p 8080:8080 java-app
, the Java Web application was up and running onto the my local like http://localhost:8080/sample.
When I tried to push this image to the Azure and then it gives me public IP address , but it says unable to connect or connection refused . I checked the logs it says .war file deployment done. I have created a network security group also and kept inbound rules to open every port.
http://40.83.211.81:8080/sample
unable to connect
Please anyone can help me for these. Thanks