I created a docker container using official node image.
docker pull node
then I created an angular 2 app using angular-cli.
ng new docker-demo
then I ran my docker container from the directory of my angular2 app using following command:
cd docker-demo
& then inside the directory :
docker run -p 8080:4200 -v $(pwd):/var/www -w "/var/www" node npm start
where pwd stands for directory of my angular2 app.
now in my console I can see my angular2 app getting bundled & running just like it runs on my local machine.
but when I try to access it from my browser using ip of my docker-machine :
http://192.168.99.100:8080/
it doesn't work.
PS: angular2 app works perfectly fine in my local system.
is there any extra configuration required?
any inputs?
thanks in advance.