After searching for the image, we can pull it to the system by running the Docker daemon. Let's see how we can do that.
Pulling an image
Getting ready
Ensure that the Docker daemon is running on the host and can be connected through the Docker client.
How to do it...
To pull an image from the Docker registry, you can either run the following:
docker image pull [OPTIONS] NAME[:TAG|@DIGEST]
Or the legacy command:
docker pull [OPTIONS] NAME[:TAG|@DIGEST]
The following is an example of pulling the ubuntu image:
$ docker image pull ubuntu