YouTip LogoYouTip

Docker Install Node

# Docker Install Node.js Node.js is a JavaScript runtime based on the Chrome V8 engine, and is a development platform that allows JavaScript to run on the server side. ### 1. View Available Node Versions Visit the Node image repository address: [https://hub.docker.com/_/node?tab=tags](https://hub.docker.com/_/node?tab=tags). You can view other versions of Node through Sort by, the default is the latest version **node:latest**. [!(#)](#) You can also find other versions you want in the dropdown list: [!(#)](#) Additionally, we can also use the docker search node command to view available versions: $ docker search node ### 2. Pull the Latest Node Image Here we pull the official latest version of the image: $ docker pull node:latest [!(#)](#) ### 3. View Local Images Use the following command to check if node is installed $ docker images [!(#)](#) In the figure above, you can see that we have installed the latest version (latest) of the node image. ### 4. Run the Container After the installation is complete, we can use the following command to run the node container: $ docker run -itd --name node-test node Parameter description: * **--name node-test**: Container name. [!(#)](#) ### 5. Installation Successful Finally, enter to check the node version running in the container: $ docker exec -it node-test /bin/bash root@6c5d265c68a6:/# node -v [!(#)](#)
← Python3 Prime Number IntervalsSvn Tutorial β†’