Hi dear, in this article we'll see how to execute Windows container with NodeJs
Note: For now, don't exists any official docker image with NodeJs to Windows container. You can confire at the official repository on dockerhub: https://hub.docker.com/_/node/
Let's see one example to run Windows container with NodeJs, separated at:
- Some Versions >= 14.19.0 from the image
henriqueholtz/node-win
see official repository on dockerhub - Some versions <= 13 from the image
stefanscherer/node-windows
see official repository on dockerhub
Note: You can see the tags that are the versions of NodeJs, for example henriqueholtz/node-win:16.15.1
have the NodeJs on 16.15.1 version.
Let's run it!
In your terminal, run the command below to create the container with the name win-16-15-1
docker run -d -t --name=node-win-16-15-1 henriqueholtz/node-win:16.15.1
After created, we can access the container by name with the command:
docker exec -it node-win-16-15-1 cmd
Now we are into the container, and we can see the NodeJs version with the simple command:
node --version
With this we can run another apps like ReactJs, NextJs and much more, on Windows container!
See How to run ReactJs on Windows container
Thanks for reading. See you in another post!
Top comments (0)