Senaite from a Docker in VM in AWS

I have created a VM in AWS. Assign to it Security Group with PORTS 8080-8089 Open. Inside my VM I am running a docker of a server mapping my VM port 8081 to the Docker port 8080. using “docker run --name mynameddocker -d -p 0.0.0.0:8081:8080 senaite”

Now, Inside my VM I can access localhost:8081 using a web browser. But the issue is trying to access it from outside VM.!!! My assumption that I can access it using AWS_Instatance_Public_IP:8081.

But nothing worked. I have a security rule that states open all TCP port, but still no access. I have tried the same in Google Cloud Platform. But no progress Any Idea ??

Hi @sami, I would rather install docker onto the AWS instance and launch the SENAITE Docker project than to launch it using a virtual machine on the instance.

Sorry for not updating this. Not sure what happened, but now it is working.
Not sure if I get you. But now, I have 3 Senaite system in my VM. Demo(port8081), Training(port8082) and Pord (port8080).