Day 16 Task: Creating Docker image of python app and deploying on EC2 instance.

shailaja sutarshailaja sutar
1 min read
  • First need configure the docker

    I have cloned a Git repository from GitHub using git clone command.

    Creating the own docker file and used the docker build command to notes-app to build the docker image once the image is build , it run a container from image using docker run notes-app :

    Using the docker run -p command give the access to port 8000:8000 for docker to run the docker image ( notes-app) on your EC2 instance on port no 8000 :

    Set the security group to give access to port 8000 from any location.

    And on the IP address of your instance on port 8000 your docker image of notes-app is running and accessible.

0
Subscribe to my newsletter

Read articles from shailaja sutar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

shailaja sutar
shailaja sutar