To use an image, either you can have it located in the docker host, or you need to fetch the image from a docker registry . Dockerhub is the Docker’s offical registry , from where you can fetch multiple community images. There are tons of official and vendor-specific pre-built images in Dockerhub such as Ubuntu, Python, CentOs, Nginx, Apache, Java, NodeJs, etc.
You can browse the docker hub repository for the required image.
The other option is to look for the image using the docker search command.
docker search
Example:
The pull command has following options
ubuntu@ip-172-31-1-61:~$ docker pull --help Usage: docker pull [OPTIONS] NAME[:TAG|@DIGEST] Pull an image or a repository from a registry Options: -a, --all-tags Download all tagged images in the repository --disable-content-trust Skip image verification (default true) --platform string Set platform if server is multi-platform capable -q, --quiet Suppress verbose output
To pull the image, you can use the pull command, the syntax is
docker pull <image:tag>
Example:
Now you can check the images in your docker host.
Please share your thoughts, about the docker pull command.
Top comments (0)