August 2017
Intermediate to advanced
278 pages
8h 53m
English
We'll start by pulling down the latest image of Docker. While this is an optional step, it will allow you to see how Docker works in stages for the first time. To download the NGINX image (which for the officially packaged version is simply called nginx), run the following:
docker pull nginx
This will then pull down a number of images, each of which will display a series of unique image IDs, like the ones displayed in this example:
Once our image has finished downloading, we can start creating our first container:
docker run --name nginx-basic -d -p 81:80 nginx
If this works, you should get a single-line output, which will ...
Read now
Unlock full access