Node.js Web Server Deployed within Docker
To install Docker CE (Community Edition), follow the instructions within one of the guides below:
For complete instructions on even more Linux distributions, reference the Install Docker Engine section of Docker’s official documentation.
The Docker Hub user page for Linode can be accessed here. Select the server-node-js image for configuration information.
sudo service docker start command.
Search for linode images:
docker search linode
Download the linode/server-node-js image:
docker pull linode/server-node-js
Run the Linode container. Forward the Linode’s port 80 to port 3000 of the container:
docker run -d -p 80:3000 linode/server-node-jsThis command runs the docker image as a daemon.
Test the server at
example.comwith your Linode’s IP address. A page with “Test File” should appear.
The Docker Hub image page has information explaining what the Docker image contains.
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
This page was originally published on