docker run -p 8080:8080 -d krll/node-web-app
$ mkdir public
$ echo "Hello World" > public/index.html
$ pwd /home/user
$ docker run -p 8080:8080 -d -v /home/user/public/:/usr/src/app/public --name=app krll/node-web-app
$ docker logs app
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info prestart [email protected]
npm info start [email protected]
> [email protected] start /usr/src/app
> node server.js
Running on http://localhost:8080