Deploying Single Container Static App with Docker & Travis CI on AWS Elastic Beanstalk

8 / 27

Please login to comment

14 Comments

Throwing error ..please help

 

  Upvote    Share

The error tells that the docker daemon is not running. You will need to start docker daemon first. 

If you're using Docker for Windows, Then simply start the desktop app installed in C:\Program Files\Docker\Docker\Docker Desktop.exe

  Upvote    Share

Done..Thank you.

 

  Upvote    Share

Hi Team,

I have created an image of the app. Now when i am trying to run this image to form a container and access the web page i am getting attached page instead of getting Go To Days page. Please find screen shot of my Dockerfile, days.html and index.html. Also i have attached the screen shot of web page which i am getting.

 

 

 

 

 

 

 

 

 

 

 

  Upvote    Share

I am not doing it on windows machine. I have created a centos instance on AWS EC2, installed docker on that. Also opened the port 80 in security group.And then trying to access the web page.

  Upvote    Share

Hi,

Please makesure that the html files are ibside the html folder, rebuild the image.

Thanks.

 1  Upvote    Share

Thank you, yes this fixed the issue.

  Upvote    Share

Hi,I'm getting the same error and also my Html files are inside the Html folder as well 

but it's not getting resolved

  Upvote    Share

I've tried making the same process in the AWS centos instance created it worked fine but not working in my local terminal or with the local host 

I've tried building the image multiple times

  Upvote    Share

Informative and interesting . Queries as a beginer:

will the DockerFile format and command line commands differ depeding upon the type of application we want to deploy? e.g ngix woint come into play if we are deploying a Java application or a ML model?

  Upvote    Share

Hi,

The lines written in Dockerfile are based on how we want to build the image. The docker commands in the command line remain the same. Further, You may refer to: https://www.nginx.com/resources/wiki/start/topics/examples/javaservers/

https://www.nginx.com/resources/wiki/modules/java_handler/

https://www.nginx.com/blog/deploying-nginx-nginx-plus-docker/

Thanks.

 1  Upvote    Share