0% found this document useful (0 votes)
2 views3 pages

Run Flask App with Docker Tutorial

The assignment involved using Docker to run a Flask web application, focusing on understanding Docker containers and browser access. Key steps included setting up Docker, creating a Flask application, writing a Dockerfile, and building and running the Docker container. The application was successfully accessed via a browser at http://localhost:5000.

Uploaded by

Ragul prakash 07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Run Flask App with Docker Tutorial

The assignment involved using Docker to run a Flask web application, focusing on understanding Docker containers and browser access. Key steps included setting up Docker, creating a Flask application, writing a Dockerfile, and building and running the Docker container. The application was successfully accessed via a browser at http://localhost:5000.

Uploaded by

Ragul prakash 07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Docker Assignment – Execution of Flask Application

In this assignment, I worked with Docker to run a simple web application using Flask. The
main aim of this assignment was to understand how Docker containers work and how a
web application can be accessed through a browser using localhost.

Steps
1. First, I installed and opened Docker Desktop on my Windows system and ensured that
the Docker engine was running properly.
2. I created a project folder and opened it in Visual Studio Code to manage my files easily.
3. I wrote a simple Flask application in Python that displays a message when accessed
through a browser.
4. I created a Dockerfile to define the instructions required to build a Docker image for my
application.
5. I created a [Link] file to install Flask inside the Docker container.
6. Using the Docker build command, I built the Docker image successfully.
7. After building the image, I ran the Docker container using port mapping so that the
application could be accessed from the browser.
8. Finally, I opened the browser and verified the output using [Link]

You might also like