skip to Main Content

Hello I have recently started learning docker. I tried to connect to tomcat server in docker desktop using

docker run -p 8080:8080 tomcat:latest

I tried to access the server using localhost:8080 and the docker container ip address but nothing worked.

HTTP Status error

enter image description here

I also checked the logs but there were no issue. what should i do now?

2

Answers


  1. Chosen as BEST ANSWER

    I am able to run the containers succesfully. There was some issue due to Virtualbox. When I stopped it the containers started working.


  2. The Tomcat image doc says

    it will return a 404 since there are no webapps loaded by default

    so this is the expected behavior.

    Note, however, that it is not correct to say that you are "unable to access Tomcat server" because the 404 error is reported by Tomcat, as confirmed by the footer in your screenshot.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search