Getting ready

Getting ready

We will be using the Docker container engine for this recipe, so we should have this installed on our system. If we don't yet have this installed, we can head over to http://www.docker.com and install the appropriate binary for our system. Docker supports Linux, Windows, and Mac natively.

We can check that Docker was installed successfully by opening a shell and running the following command:

$ docker run hello-world 

This command will pull the hello-world image from Docker Hub – a central repository of public Docker images, create a new container from that image, and run it. The executable within the container will output hello from Docker along with some help text.

We also need the code from Chapter 10, Building ...

Get Node Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.