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.
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.
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?
Please login to comment
14 Comments
Throwing error ..please help
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
Upvote ShareC:\Program Files\Docker\Docker\Docker Desktop.exe
Done..Thank you.
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.
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 ShareHi,
Please makesure that the html files are ibside the html folder, rebuild the image.
Thanks.
1 Upvote ShareThank you, yes this fixed the issue.
Upvote ShareHi,I'm getting the same error and also my Html files are inside the Html folder as well
but it's not getting resolved
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 ShareInformative 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 ShareHi,
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