Skip to content

Docker nodejs image

nSoftteco edited this page Mar 5, 2016 · 1 revision

Docker + NodeJS

First get the latest node image:

    docker pull node:latest

To launch the NodeJS container run:

    docker run -it --rm node

This will run the node container and will put you in the interactive shell from which you can execute code. You can test it by entering:

    console.log('It works.')