Docker Pull Command

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 …


This content originally appeared on DEV Community and was authored by Daily Tech Learning

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.

 

docker registry search

 

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.

 

 


This content originally appeared on DEV Community and was authored by Daily Tech Learning


Print Share Comment Cite Upload Translate Updates
APA

Daily Tech Learning | Sciencx (2021-08-07T10:18:37+00:00) Docker Pull Command. Retrieved from https://www.scien.cx/2021/08/07/docker-pull-command/

MLA
" » Docker Pull Command." Daily Tech Learning | Sciencx - Saturday August 7, 2021, https://www.scien.cx/2021/08/07/docker-pull-command/
HARVARD
Daily Tech Learning | Sciencx Saturday August 7, 2021 » Docker Pull Command., viewed ,<https://www.scien.cx/2021/08/07/docker-pull-command/>
VANCOUVER
Daily Tech Learning | Sciencx - » Docker Pull Command. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/07/docker-pull-command/
CHICAGO
" » Docker Pull Command." Daily Tech Learning | Sciencx - Accessed . https://www.scien.cx/2021/08/07/docker-pull-command/
IEEE
" » Docker Pull Command." Daily Tech Learning | Sciencx [Online]. Available: https://www.scien.cx/2021/08/07/docker-pull-command/. [Accessed: ]
rf:citation
» Docker Pull Command | Daily Tech Learning | Sciencx | https://www.scien.cx/2021/08/07/docker-pull-command/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.