简体   繁体   中英

error launching simple web app in docker container on AWS Elastic Beanstalk

屏幕截图

That is what I get when I follow the instructions at the official Docker tutorial here: tutorial link

I uploaded my Dockerrun.aws.json file and followed all other instructions.

The logs show nothing even when I click Request:

错误画面2

If anyone has a clue as to what I need to do, ie. why would not having a default VPC even matter here? I have only used my AWS account to set up Linux Machine EC2 instances for a Deep Learning nanodegree at Udacity in the past (briefly tried to set up a VPC just for practice but am sure I deleted/terminated everything when I found out that is not included in the free tier).

The author of the official tutorial forgot to add that you have to add the tag to the image name in the Dockerrun.aws.json file per below in gedit or other editor where :firsttry is the tag:

{
  "AWSEBDockerrunVersion": "1",
  "Image": {
    "Name": "hockeymonkey96/catnip:firsttry",
    "Update": "true"
  },
  "Ports": [
    {
      "ContainerPort": "5000"
    }
  ],
  "Logging": "/var/log/nginx"
}

It works:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM