Docker Community Forums

Share and learn in the Docker community.

Tomcat give error 404

Hi guys,
After running tomcat on ubuntu with port forwarding its give this error
Can you help to understand whats the problem?

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.35

1 Like

Hi okamigo,

I was facing the same issue while I was trying to pull Tomcat image from Amazon Linux virtual machine, Here is solution to fix the issue,

docker pull tomcat:latest

docker run -d --name mytomcat -p 8080:8080 tomcat:latest

docker exec -it mytomcat /bin/bash

mv webapps webapps2

mv webapps.dist/ webapps


for explanation go through this article