2.21. Docker install Node.js

发布时间 :2025-10-25 12:31:01 UTC      

Node.js is a JavaScript running environment based on Chrome V8 engine and a development platform that allows JavaScript to run on the server side.

2.21.1. 1. View the available Node versions

Access Node Mirror Library address: 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 .

` <../wp-content/uploads/2019/11/docker-node1.png>` __

You can also find other versions you want in the drop-down list:

` <../wp-content/uploads/2019/11/docker-node2.png>` __

In addition, we can use the docker search node command to view the available versions:

$ docker search node

2.21.2. 2. Take the latest version of node image

Here we pull the official image of the latest version:

$ docker pull node:latest

` <../wp-content/uploads/2019/11/docker-node3.png>` __

2.21.3. 3. View the local image

Use the following command to see if node is installed

$ docker images

` <../wp-content/uploads/2019/11/docker-node4.png>` __

You can see in the figure above that we have installed the latest version (latest) of the node image.

2.21.4. 4. Run the container

After the installation is complete, we can run the node container using the following command:

$ docker run -itd --name node-test node

Parameter description:

  • –name node-test : container name.

` <../wp-content/uploads/2019/11/docker-node5.png>` __

2.21.5. 5. Installation succeeded

Finally, go to check the node version that the container is running:

$ docker exec -it node-test /bin/bash
root@6c5d265c68a6:/# node -v

` <../wp-content/uploads/2019/11/docker-node6.png>` __

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.