2.21. Docker install Node.js

发布时间 : 2025-10-25 13:32:35 UTC      

Page Views: 9 views

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>` __

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。