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
demandé il y a un mois85 vues
1 réponse
1
Réponse acceptée

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
répondu il y a un mois
profile picture
EXPERT
vérifié il y a 25 jours
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions