I installed docker in RedHat8 and pull the centos8 image and create a container with port 8080 Shown Below.
In that container, I installed java and tomcat, and I deployed my wars in tomcat at webapps location and started tomcat the tomcat ran successfully. I gave 80 port (changed in server.xml) to tomcat to access the application from the browser. After that, I tried to access my application with Url:
https://40.6.254.159:8080/ (IP address was RedHat server IP)
But I am not able to access the application. Please let me know how to access web application
CodePudding user response:
Try to stop the container, and run your container with
docker run --name rajesh --publish 8080:8080 <other arguments> centos