- Build the image and run a container:
docker build --rm -t node-example . docker run -d -p 8000:3000 node-example
- Direct your browser to
http://localhost:8000
Example to run a Node.js server inside a Docker container
docker build --rm -t node-example .
docker run -d -p 8000:3000 node-example
http://localhost:8000
Example to run a Node.js server inside a Docker container