Running a Docker container on AWS Elastic Beanstalk – Where is my web app?

  • I deployed an Application from a Docker Container to AWS Elastic Beanstalk Using the Elastic Beanstalk Console.
  • After finishing deploying Web Application on AWS Elastic Beanstalk – Environment status is green.
  • I clicked the URL link on the environment dashboard to view
    my web application.

It always navigates to web page have string

Congratulations!
Your Docker Container is now running in Elastic Beanstalk on your own dedicated environment in the AWS Cloud

I read log file, I don’t see any error.
Here’s its link: http://dockstalker-env.elasticbeanstalk.com/
Where is my web app? Do i miss anything?

  • Docker registry getsockopt: connection refused
  • elastic-beanstalk docker app not updating upon deploy
  • How to delete untagged images from AWS ECR Container Registry
  • Docker Volume vs AWS s3
  • Why does AWS have two services to deploy Docker (one “Infra” and one “Platform”)?
  • docker build taking too much time in aws ecs
  • Dockerfile

    FROM ubuntu:14.04
    
    RUN apt-get update && apt-get upgrade -y
    
    RUN apt-get install -y git git-core wget zip nodejs npm
    
    EXPOSE 8080
    
    # startup
    ADD start.sh /tmp/  
    RUN chmod +x /tmp/start.sh  
    CMD ./tmp/start.sh  
    

    start.sh

    cd /tmp
    
    rm -rf docker-node-test; true
    
    git clone https://github.com/incrediblemolk/docker-node-test.git
    
    cd docker-node-test
    
    npm install
    
    nodejs app.js  
    

    Dockerrun.aws.json

    {
        "AWSEBDockerrunVersion": "1",
        "Image": {
            "Name": "ubuntu:14.04"
        },
        "Ports": [
            { 
                "ContainerPort": "8080"
            }
        ]
    }
    

    Before I hit the beanstalk I put 3 files into a .zip file. Call it aws-test.zip

    Head to the AWS developer console and select “Elastic Beanstalk”. Then pick “Create New Application”.

    1. Pick an application name.
    2. Environment tier: Web Server
    3. Predefined Configuration: Docker
    4. Environment type: Load balancing, autoscaling
    5. On the next screen select Upload your own and find the zip you created.
    6. Additional Resources. Next.
    7. Configuration Details. Next.
    8. Environtment Tags. Next.
    9. Scroll down and click Launch.

  • When dockerizing a rails app with EC2 container service with ELB do I still need nginx?
  • elastic-beanstalk docker app not updating upon deploy
  • AWS Mesosphere: parameters for docker daemon
  • AWS EC2 Container program command line arguments
  • Does AWS support Kubernetes?
  • Docker not working after running MapReduce - AWS
  • One Solution collect form web for “Running a Docker container on AWS Elastic Beanstalk – Where is my web app?”

    “Congratulations! …” page is what you usually see when you choose “Sample application” option in the Application Version step:

    enter image description here

    Please double-check what version you have specified. Also, it might be useful to check this tutorial: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deployment.source.html

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.