Running Apache Tomcat in docker

I am running Apache Tomcat on docker in centos 8. I have pulled an image of tomcat in docker and ran it successfully inside docker. But how to access the tomcat default applications.
This is where the problem is occurring.

I am using the steps mentioned in docker

The error that i am getting is

Thanks in advance for your help/suggestion.

That looks like a 5 year old tutorial, maybe use a newer one.

You should use http to connect to localhost, not https.

As @bluepuma77 said, but if you typed http, it is possible you used self-signed certs for “localhost” before and the browser still remembers it and still redirects you to https. In that case an incognito window / private window could help