Why we need Docker?

Arpita Srivastava
EduTorq Community
Published in
3 min readJul 27, 2020
Docker

Yaa, I know this is the most common question and most of you who know about Docker may know the answer.Here is the definition about Docker:

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.

But anyway let me explain this and may be it help you to understand more briefly and make you to visualize more.

As you see in above picture a fish and the box above it. Now think fish as a Ship and Box as the container. Suppose you are ordering something online and you ordered 5 Litres of oil gallon 1 packet of rice,

  • Gallon and Packet is like Containers.
  • Oil and Rice is the softwares inside it.

You can move it from one place to another, its totally packed.

The Core Concept that Docker uses is that It uses the Kernel of the Host Machine as it does not have its own.

The same thing we are now using in the industries.We pack everything in containers and move it to the deployment team to use it without any further issues.

Lets have a scenario, suppose Developer build a code i.e., working fine on their system and send it to the tester but the same code doesn’t work on their system. The code doesn’t work on the other system due to the difference in computer environment. So what could be the solution…..

  • Either you can use the Virtual Machine.
  • Or you can use Docker.

Here is the difference between Virtual Machine and Docker. You can use any of it but you have to look what are your requirements and what suits you best.

Here are the benefits that Docker container provides you.

So after creating the Docker environment as it is portable you can send it to the tester and everything will workout just great.

Here is some bonus for you all. Some interview Questions whose Answer is in this Blog.

  • What is difference VM and Docker?
  • Why Docker is so fast?
  • What are the advantages of Docker?

In my next Blog we will have the brief discussion about What the container is and how to use the container. Till then Stay Tunned…….

--

--