What is Docker and How it works | DevOps

ssd

server side digest

Posted on December 4, 2022

What is Docker and How it works | DevOps

šŸ“ Deployment and Testing

Many of us write code of our RESTful API or in general our App. And we deploy them to the Heroku or Vercel (šŸ˜… These hosting servers are quite a popular among college people atleast). And after that we can access our website that will be served by the hosting vendors like heroku or vercel.

šŸ™‹ But most of the developers (especially beginners) do write code and the things, that they don't consider are:-

  • Code should be able to run on any machine
  • Unit Testing
  • Performance Testing
  • Concurrency or Concurrent Servers
  • Documenting the code

šŸ‘‰ Today, we'll talk about the first point and this is where concept of containerization comes into the picture.

Note:- Images are taken from SimpliLearn

Image description

The solutions to the above problem (Code is running fine on my system but not working on the machine of tester) are:-

  • Use Virtual Machine
  • Use Containers

Image description

šŸ™‚ One of the solution is use a Virtual machine which is a kind of simulation of a Computer. But OS in VM (Virtual machine) takes too much memory, large boot up time, Difficult to scale and low efficiency in general because of unnecessary things running that are not required to run our app.

šŸ“ DevOps and its tools

Image description

  • Git and Jira are used for the roadmap of doing things
  • Gradle is used for laying out the Project structure
  • Testing is done using selenium
  • Integration (CI/CD) is done using Jenkins
  • Docker and is used in Deployment

Follow for more, We'll talk about others in later blogs

šŸ“ What is Docker

Docker is a tool to containerize the application so that applications can work in different environments.

šŸ™‚ Some Containers Specs:-

  • Multiple containers can run on the same hardware
  • Containers maintains isolated applications
  • Productive and Efficient
  • Easy to configure

Programming memes

Hey, We are almost at the end. Don't give up.

Docker Different Components

šŸ“ On the left we can see that Docker engine has client and server which are communicating through REST API. On the client side Docker CLI is running and Server side we have Docker Deamon.

šŸ“ In more detail we can see on the right side we have different components comprised inside of Docker ecosystem.

šŸ‘‰ Let's see how it works:-

  • Docker Client is accessed from the terminal and docker server or host runs the Deamon and Registry
  • User can create docker images and run containers by passing commands to the docker server using docker client or terminal
  • Docker image is a template having instructions to form up the containers. Docker image is created as Docker file
  • After image creation we store it in the registry so that other people can access it from the registry

Docker Container


In our next Blog we'll see the Working of Docker. It will get more clear from that. Follow for more

šŸ’– šŸ’Ŗ šŸ™… šŸš©
ssd
server side digest

Posted on December 4, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related