0% found this document useful (0 votes)
31 views

Dockerizing An Angular Application

The document provides steps to dockerize an Angular application. It outlines 7 steps to create a Dockerfile, build a docker image, run the image and map ports. It also provides commands to push the image to Docker Hub and export it as a tar file to transfer between systems.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Dockerizing An Angular Application

The document provides steps to dockerize an Angular application. It outlines 7 steps to create a Dockerfile, build a docker image, run the image and map ports. It also provides commands to push the image to Docker Hub and export it as a tar file to transfer between systems.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

DOCKERIZING AN

ANGULAR APPLICATION
Implementation

• Step 1 : Download and install Docker Desktop.

• Step 2 : Enable Virtualization

• Step 3 : Create an empty Dockerfile and save it in a project directory


on the system.
Implementation
• Step 4 : Open the Dockerfile and enter the following contents in
it and save it:
Implementation
• Step 5 : Start Docker Desktop and Windows PowerShell.
• Step 6 : In the PowerShell console, browse to the project directory using the ‘cd’
command.
Build a docker image of the dockerfile using the following command:
Implementation
• Step 7 : Run the created image using the following command:
docker run --rm -d -p 80:80/tcp notesapp:latest
Implementation
• Step 8 : Running on localhost:80
Implementation
Commands to create the image file to transfer from one system to
another
1. Push the created image to docker hub.
docker login

docker push dnyanisha/notesapp:latest


Implementation
2. Create tar file
docker save -o C:\Users\Dnyanisha\Desktop\docker\
docker-notesapp.tar 717a853251cb

Send the file on the host machine and then load on local system docker using the
following command
docker load -i <path to copy image file>
THANK YOU

You might also like