Answer the question
In order to leave comments, you need to log in
Why does Docker Tomcat start but with a 404 error?
Good afternoon, I started to learn docker.
docker-machine ls command gives:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376
v19.03.12 Downloaded
tomcat, run:
docker run -it -p 8080:8080 tomcat
Tomcat in container at 192.168.99.100:8080 getting:
HTTP Status 404 - Not Found
Type Status Report
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.37
Those. Tomcat starts up, but for some reason the default page is not available.
What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
A good habit, before deploying some kind of container, is to look for what its author writes, at least on dockerhub.
So, let's go https://hub.docker.com/_/tomcat
And find the phrase there:
Note: as of docker-library/tomcat#181, the upstream-provided (example) webapps are not enabled by default, per upstream's security recommendations, but are still available under the webapps.dist folder within the image to make them easier to re -enable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question