How To Download Docker Images From Docker Hub In Linux?

How To Download Docker Images From Docker Hub In Linux?

   

This post was last updated on August 1st, 2020 at 08:53 am

Docker image is an immutable file that is essentially a snapshot of a container. Images are created with build command, and they produce a container when started with the run command. Docker pulls these images from the docker hub.

Docker hub maintains a registry because an image can become quite large, these are designed to be composed of other images, allowing a minimal amount of data to be sent when transferring images over the network.

This article describes how to download and use the docker image from the docker hub in Linux.

Docker Hub

Docker provides a service called docker hub which allows users to find and share container images with their team. It has various features such as you can manage access to private repositories of container images, automatically build container images from GitHub, Bitbucket and push them to docker hub, etc. Docker officially provides high-quality docker images.

How to search for an image

Before you start performing operations such as searching and downloading docker images you need to download and install docker in your system. Once it gets installed you can use the search command with the docker to find an image.

sudo docker search alpine

This will display the list of images available with the name alpine in the docker hub. Here you can identify the image that you want to download.

How to download a docker image

Now use the pull command to download an image from docker hub  –

sudo docker pull alpine

This will start downloading the image of alpine Linux from the docker hub.

How to list all the downloaded images

To display the list of local images you need to use the following command –

sudo docker images

You can see the downloaded docker images in the above image.

Conclusion

Ok, that’s all for now. If you want to know more about the options and commands that can be used with the docker then run docker command without any argument. Or you can also display the commands by executing man docker in your terminal.

Previous Lubuntu - Software Installation
Next Copying certain files corrupt both source and target file system

About author

You might also like

How To 0 Comments

How To Upgrade To Ubuntu 20.04 LTS From Ubuntu 18.04 Or Ubuntu 19.10?

This post was last updated on August 1st, 2020 at 12:30 pmUbuntu comes in two releases the first one is LTS and the second is standard versions. LTS (Long Term

Administration 0 Comments

How To Install And Use Docker In Ubuntu/Linux Mint?

This post was last updated on August 1st, 2020 at 04:58 pmUnlike the Virtual Machine in Linux which uses all the resources of the host machine, Docker is a platform

Linux Topics 0 Comments

How To Remove/Uninstall Software Packages From Debian, Ubuntu, Linux Mint?

This post was last updated on August 1st, 2020 at 12:21 pmDifferent Linux distribution comes with different tools to manage software packages on it. Debian and its derivative use the

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply