Docker NodeJS Simple How To

Docker NodeJS Simple How To

For Windows install via

After install it will logout and when it comes back will ask to Setup Hyper-V and will break VIrtualBox

Download all zips here

unzip and on the same folder (should have the Dockerfile index.js and package.json) run from cmd.exe

docker build -t mynodejs .
#note about 688 MB

docker run -ti -p 8888:8888 mynodejs

#node cmd:
-it (run interactive on pseudo tty)
–rm (boot clean)
-p :

open browser to:

you should see:

Hello Me linux

Leave a Reply

Your email address will not be published. Required fields are marked *