Docker starts tomcat to access 404

start tomcat

docker run -it -p 8088:8080 tomcat

access tomcat

The http://localhost:8088/
page displays 404, the resource cannot be found

Access the tomcat directory under dockers

docker exec -it 0c1fa3acef43 /bin/bash

View all folders in the current directory

ls -rlt

Found that there is a  webapps and a  webapps.dist folder

Enter the webapps folder and find it is empty.

Delete the webapps folder using the following command

rm -rf webapps

Copy the contents of the webapps.dist folder to the webapps folder

mv webapps.dist webapps

Guess you like

Origin blog.csdn.net/PhilipJ0303/article/details/120557794