Pull Docker Container Images

Pull Docker Container

PULL DOCKER CONTAINER IMAGES

In this blog, we show you how to Pull Docker Container Images from the public repository using dockerd command.

Docker Images Overview

We need to pull the base container images from image registry dockerhub.com. It contains both official and unofficial repositories from the end-users. The official Microsoft repository contains the bunch of base container images that we can use to start running the containers. we will pull both the nano server & windows server core images from the Microsoft repository. Then we will build our own container images. These images are made of multiple layers stacked on top of each other.

SEARCHING THE IMAGES

  • To pull the images, access hub.docker.com URL.
Pull Docker Container Images
  • Type nanoserver in the search bar and hit enter.
Pull Docker Container Images
  • Click on the Microsoft/nanoserver repository.
Pull Docker Container Images
  • You can find the company name and the command to pull the nano server image on the right-hand side of the page.
Pull Docker Container Images

PULLING BASE IMAGE (NANO SERVER)

  • Login into windows container host server and execute the below command to pull the nanoserver image from the docker hub repository.

docker pull Microsoft/nanoserver

Pull Docker Container Images

By default, it will pull the latest image with tagged as latest

  • To download the older image from the repository, execute the command with the tag ID of the image. For ex:

docker pull Microsoft/nanoserver:10.0.14393.693

Here 10.0.14393.953 is the version number of the image.

Pull Docker Container Images
  • To view the images list, execute the below command.

docker images

Pull Docker Container Images

PULLING SERVER CORE IMAGE

  • To pull the server core image, execute the below command.

docker pull Microsoft/windowsservercore

Pull Docker Container Images
  • Once it’s complete, to list the images execute the below command.

docker images

Pull Docker Container Images

VIDEO

Thanks for visiting this blog. We hope it was useful for you to learn how to pull container base images from the public repository.

Loges