Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Henrique Holtz
Henrique Holtz

Posted on • Edited on

     

How to execute Windows container with NodeJs

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:

Note: You can see the tags that are the versions of NodeJs, for examplehenriqueholtz/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 namewin-16-15-1

docker run -d -t --name=node-win-16-15-1 henriqueholtz/node-win:16.15.1
Enter fullscreen modeExit fullscreen mode

After created, we can access the container by name with the command:

docker exec -it node-win-16-15-1 cmd
Enter fullscreen modeExit fullscreen mode

Now we are into the container, and we can see the NodeJs version with the simple command:

node --version
Enter fullscreen modeExit fullscreen mode

output of  raw `node --version` endraw  command

With this we can run another apps like ReactJs, NextJs and much more, on Windows container!

SeeHow to run ReactJs on Windows container

Thanks for reading. See you in another post!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Brazil
  • Work
    Wake Commerce (former TrayCorp)
  • Joined

More fromHenrique Holtz

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp