DEV Community

Cover image for Docker Pull Command
Daily Tech Learning
Daily Tech Learning

Posted on

1

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 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.

 

 

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay