I created a ec2 instance, then opened the ssh through windows powershell .
Its a ubuntu instance.
i installed docker.io
Then ran :
docker pull tomcat:jre8
docker run -d -p 80:8080 tomcat:jre8
Now when i open a website using my public ec2 instance ip the tomcat website is not coming
Instead I am having http error 404
The docker.io package on Ubuntu is maintained and supported by Canonical.
Though, your problem should be independent of the docker distribution.
This is a base image, meant to be used as base image for your own image, where you add your application as war package.
If you feel it should still work, please quote the part of the image description that supports the expectation.