Why I dont see Tomcat after run docker tomcat?

Why I dont see Tomcat after run docker tomcat?

I think the tutorial you are referring to is a bit outdated. You can run the tomcat docker container using a command like

docker run --rm --name tomcat-server -p 8080:8080 tomcat:latest

Access tomcat at http://localhost:8080

Further information is here. You would initially get a 404 as the webapp folder is empty. You can refer to this documentation which should help in getting a basic Tomcat installation running. You can then follow from step 3 of the original tutorial you are refer to.

docker exec -it tomcat-server /bin/bash
mv webapps webapps2
mv webapps.dist/ webapps
exit

Why I dont see Tomcat after run docker tomcat?

Leave a Reply

Your email address will not be published.