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
I also checked the logs but there were no issue. what should i do now?
2
Answers
I am able to run the containers succesfully. There was some issue due to Virtualbox. When I stopped it the containers started working.
The Tomcat image doc says
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.