Node.js Web Server Deployed within Docker
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Node.js is a server-side, JavaScript package, often used for various cloud applications. Docker is a container platform. With Docker, users can download applications without the hassle of the installation and configuration process.
Install 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.
Download the Docker Node.js Server Image
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 Docker Container, Node.js, and the Web Server
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-js
Note This command runs the docker image as a daemon.Test the server at
example.com/test.htm
, replacingexample.com
with 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.
More Information
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