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
已提问 1 个月前85 查看次数
1 回答
1
已接受的回答

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
已回答 1 个月前
profile picture
专家
已审核 25 天前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则