After searching the image, we can pull it to the system by running the Docker daemon. Let's see how we can do that.
Make sure the Docker daemon is running on the host and you can connect through the Docker client.
To pull an image on the Docker registry, run the following command:
docker pull NAME[:TAG]
The following is an example to pull the Fedora image:
$ docker pull fedora
The pull
command downloads all layers from the Docker registry, which are required to create that image locally. We will see details about layers in the next chapter.
Image tags group images of the same type. For example, CentOS can have images with tags such as
centos5
,centos6
, and so on. For example, to pull an image with the specific tag, run the following command:$ docker pull centos:centos7
By default, the image with latest tag gets pulled. To pull all images corresponding to all tags, use the following command:
$ docker pull --all-tags centos
With...