What is Docker and Docker Image

What is Docker and Docker Image

No alt text provided for this image

In this blog we will try to understand one of most popular tools used to containerize and deploy applications over the internet i.e. Docker. It make deploying applications extremely simple.

We will try to look at the things that make it so special and learn how to create, deploy, run applications by using containerization technology.

So, here we go

Have you ever think how Operating System work if no so let se,

When you install OS step we follow:

DVD --> Program --> Process --> OS install --> Boot --> = provisioning

No alt text provided for this image

You know normally one OS need 6-7 GB of storage and take 30-40 min in booting and installing but docker technology can launch OS in 1 sec.

For Installing any OS we require Image/DVD for launching Container we need docker image. Docker Community has its own internal URL at Redhat/Centos they put in one public repository known as docker hub.public.com you can create your own private registry that we will discuss later.

Docker pull centos:07        

with above command docker will download image from public repository

docker run -i -t --name myos1 centos:07        

This will launch new container in just sec.

Docker will launch new container in just 15-20 mb

Now let's move ahead till here we got to know what is docker how it work,

  • How to create your own Docker Image

Let's suppose we are working in Docker Container in this we download some software from internet or you create some pages at the same time your friend also want to work on that page so what you will do?? Docker has an amazing facility to create image of current OS

docker commit  myos1 myimage:v1        

This will create a new image with additional software and your pages now you also can upload this in docker hub.public.com and copy as many OS as you want this process is known as cloning. You can launch container with this image:

docker run --it --name myOS2 myimage:v1        

Docker Engine

  • The software that hosts the containers is named Docker Engine.
  • Docker Engine is a client-server based application

It consists of 3 main components :

  1. Server: It is responsible for creating and managing Docker images, containers, networks and volumes on the Docker. It is referred to as a daemon process.
  2. REST API: It specifies how the applications can interact with the Server, and instructs it what to do.
  3. Client: The Client is a docker command-line interface (CLI), that allows us to interact with Docker using the docker commands.

Push an Image to Docker Hub

  • 1. Create an Account on Docker Hub.
  • 2. Click on “Create Repository” button, put the name of file and click on “Create”.
  • 3. Now will “tag our image” and “push it to the Docker Hub repository” which we just created.

docker tag <image-id> <your dockerhub username>/myimage:v1        

  • 4. Push image to Docker Hub repository

docker push <user name>/myimage
        







To view or add a comment, sign in

More articles by Saloni Gupta

  • Configure Kubernetes

    Kubernetes also known as K8s or "kube" it is an open source container Orchestration platform that automates many of the…

  • Cross Region Replication and Versioning in S3

    What is Cross Region Replication? Cross Region Replication is a feature that replicates the data from one bucket to…

    3 Comments
  • Accessing S3 with AWS IAM Roles

    What is CLI(Command Line Interface) The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services.…

    2 Comments
  • CONFIGURE AWS S3 LIFECYCLE POLICY

    What is S3? S3 stands for Simple Storage Service. It provides object storage through a web service interface.

    2 Comments
  • What is Kubernetes and how industry use it

    As a front-End developer, you don't have to know how to configure an infrastructure from scratch. However, if you have…

    4 Comments
  • My Journey of ARTH-200 Days

    200 days of ARTH- The school of technology. Today I will not say Thank you because I know no word can define what you…

    3 Comments
  • Tra ML model inside a Docker Container

    In this article, we are going to create a simple machine learning model on top of a container our model will predict a…

    2 Comments
  • What is Jenkins and Use-Case

    Agenda What is Jenkins What is Continuous Integration How Does Jenkins Work Why use Continuous Integration with Jenkins…

  • What is Docker Container and Use-Case

    Hello friends , hope you all doing good I am here to share you Today's most important topic Docker. As you all know…

  • What is Ansible & Ansible Tower

    Why we need Ansible? Let us take a little back to the beginning of networked computing when deploying and managing…

    2 Comments

Others also viewed

Explore content categories