Friday, 24 November 2017

How to run an angular app in docker

If you have not cloned or downloaded the git repo, please run the command below.


  1. Navigate to Folder using command prompt or docker prompt(windows 7,8 user) where you copied the  nodelinuximage.tgz

  1. Run below command to load the image to your system.

docker load < nodelinuximage.tgz

  1. Navigate to the angularclient folder.

  1. Create a file named as “DockerFile” without any extension inside the angularclient .

  1. Add content as shown below.


  1. Open command prompt or docker command prompt(windows 7,8 user)

  1. Navigate to the folder in the (docker)command prompt where the dockerfile was created.

  1. Run below command:

docker build -t angularclient .

docker run -it --rm -p 9001:4200 -v ${pwd}/src:/app/src angularclient

  1. For windows 10: Navigate to http://localhost:9001



  1. For windows 7,8: Navigate to http://192.168.99.100:9001/



  1. Stop all containers:

docker stop $(docker ps -a -q)

No comments:

Post a Comment

Understand and Implement Roles Vs Claims Based authentication in MVC Web API

In this blog, you will learn on how to Implement Roles and claims based authentication. You will also understand what is the difference b...