Once you figure out which image you would like to work with, you can download the image locally by using the docker pull
command:
By default, the latest tag or version is pulled from the Docker Hub.
Docker images are made up of multiple layers; each layer is marked with a unique identifier. When a user types docker pull
, the Docker daemon downloads layers in parallel and extracts them onto your local computer. Docker is smart enough to pull only those layers that are not present on the local computer.
For example, in the preceding command, docker pull microsoft/iis
, the image named microsoft/iis
is made using windowsservercore
as the base OS, when it is downloaded to the container host the Docker daemon pulls all the layers, but not the windowsservercore
base OS image. This is because the Docker daemon is intelligent enough to identify the layers or base OS images that are already present on...