docker pull command serves for downloading Docker images from a registry.
By default, the
docker pull command pulls images from Docker Hub, but it is also possible to manually specify the private registry to pull from.
Before running the
docker pull command it needs to search the Docker registry for the image to download.
In the examples below i will show how to pull the CentOS image from the official repository.
Cool Tip: Image vs. Container … What is the difference? Read More →
Docker Pull Command
The syntax of the
docker pull command:
$ docker pull [OPTIONS] [PATH/]IMAGE_NAME