How to pull an image from docker Hub

How to pull and image from dockerhub
Written by DEL support01
Updated 10 months ago

1- login to the server

2- type the docker login command to login to docker Hub

3- You will be prompted to enter you docker Hub username and password

4-Now type the docker pull command + username/repository_name:tag

username here is your docker Hub username or organization name

repository_name is the name of the repository containing the image you want to pull

tag is the specific version tag of the image you want to pull

example: docker pull devopseasylearning/nginx:latest

Docker will start downloading the image from docker Hub. Once the download is complete, you will see a message indicating that the image has been successfully pulled.

Did this answer your question?