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