• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
July 20, 2022 |610 Views

How do I Manage Images in Docker? | Docker Image Management

  Share   Like
Description
Discussion

In this video, we'll look at how to design our own Docker images and upload them to the Docker Hub profile. It is a good idea to push your images to your docker hub profile so that you can pull them in your system and the cloud, where all of your work is kept, without having to generate it from scratch.

What is Docker?
One of the most well-liked DevOps tools is Docker, an open-source container management service. Most agile-based projects that demand continuous software delivery use Docker. Docker image creation is a easy process same as using git or Github. With just a few commands, we can quickly construct a Docker image. 

The pull command comes first. Depending on your internet connection, this programme will download/pull the entire operating system in a matter of seconds.

The second command, run command, will be used to execute the downloaded image. With this command, my image will be launched, giving us access to an interactive shell or terminal.

Tag command is the following command. We must rename our image using the syntax username/image-name:tag when running this command. Before executing this command you need to create an account on the Docker hub and you have to give the same username which you have given in the docker hub profile.

The push command comes next. Using this command, we can submit a customised Docker image to the Docker Hub profile and then fetch it from the cloud to our local machine.

It is necessary to upload our docker image to the docker hub profile by executing this command, which will log us into the docker hub account using our terminal.

Working with Docker images: https://www.geeksforgeeks.org/working-with-docker-images/