Unable to make the web application live on EC2 after importing the image from DockerHub

0

Enter image description here

Enter image description here

Enter image description here

Enter image description here

Enter image description here

Enter image description here

profile picture
asked 12 days ago54 views
1 Answer
1
Accepted Answer

Hi,

Looks like your source in the port 5000 opening is for a source security group sg-0f44xxxxx, not from internet.

You'll need to add 0.0.0.0/0 as source, or your current ip if you only want it open for that ip.

Your current opening in SG only allows instances that are within that security group, to connect to the port.

xanthic
answered 12 days ago
profile picture
EXPERT
reviewed 11 days ago
  • I need to open to the internet. How to do.

  • I still needed to run the pulled image. Here is how I tried but getting this message: Last login: Tue May 7 10:36:18 2024 from 13.233.177.4 ubuntu@ip-172-31-37-36:~$ docker run -d --name my-rajeev-container digitalsplendid/rajeev:latest docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create?name=my-rajeev-container": dial unix /var/run/docker.sock: connect: permission denied.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions