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