Check Docker
sudo apt install docker.io
sudo docker run hello-world
If you see the hello-world message, Docker is ready.
Create a small server
mkdir ~/NodeJSDemo && cd ~/NodeJSDemo
nano server.js
const http = require("http");
const server = http.createServer((req,res) => {
res.end("Hello from Jetson!");
});
server.listen(3000, "0.0.0.0");
Run with Docker
sudo docker pull node:latest
sudo docker run -p 3000:3000 -v "$PWD":/usr/src/app -w /usr/src/app node:latest node server.js
Open http://<ip>:3000
in a browser to see the greeting.
Conclusion
This confirms Docker, networking, and Node.js all work. From here, you can containerize bigger apps or add a Dockerfile for production.