"docker image pull" - Pull Image

Q

How to pull an image from the remote registry to the local repository with "docker image pull" command?

✍: FYIcenter.com

A

If you know the name of a Docker image, you can pull it from the remote registry to your local repository using the "docker image pull", or "docker pull" command.

1. Run "docker image pull" command to pull the image.

fyicenter$ docker image pull hello-world

Using default tag: latest
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc
Status: Downloaded newer image for hello-world:latest

2. Verify the image in local repository.

fyicenter$ docker image list | grep hello-world

hello-world  latest  fce289e99eb9  4 months ago        1.84kB

Note that both "docker container create" and "docker container run" commands can pull images automatically, if they are not found in the local repository.

 

"docker search" - Search Images from Docker Hub

"docker image rm ..." - Remove All Images

"docker image ..." Commands

⇑⇑ Docker Container Platform - Tutorials

2019-04-22, 905🔥, 0💬