Simply Explain The Concept of Docker
Md Shah Jalal
Helping Luxury Real Estate Agents Get High-End Clients with Stunning Websites, Advanced UX, Powerful Features, & 1:1 Consultancy??Results in 14 Days, Insha Allah! ?? DM Me Now!
Before going in-depth let’s see an interesting scenario that we all have faced already. What’s the scenario???
Well. As a Software Engineer or a Developer, you have developed or are developing an application. Now, you want to share the application with others. The fact is here, Your application is working properly on your machine but doesn’t somewhere else. Can you think of three reasons, Why?
To solve the issue and to make easy the developing process we are going to explore Docker.
What is Docker?
Docker is a software platform that simplifies the process of building, running, managing, and distributing (shipping) applications. ??
By using Docker, we can build, run, and ship our application consistently. So if your application works on your development machine, it can run and function in the same way on other machines.
To get started we have to know some simple terms Docker Image, Container, Hypervisor.
Hypervisor: Let’s have a Mac and on this Mac, we can run two virtual machines(VMs), one running Windows, and the other running Linux. How do we do that? Using a tool called Hypervisor (hypervisor is a software we use to create and manage the VMs).
There are many hypervisors. Like
领英推荐
Docker Image:?
A Docker image is a read-only template that contains instructions for creating a Docker container. It is similar to a blueprint for building a house. The image contains all the necessary code, libraries, and dependencies required to run an application.
Container:
A Docker container is a lightweight, isolated environment that packages up an application and all of its dependencies. Containers are created from images, which are read-only templates that contain instructions for building a container.
Let’s simplify the full concept with a short story. Imagine, your wife made lunchboxes for you. Each lunchbox holds a full meal, including a sandwich, some chips, and a dessert. You have several lunchboxes, and they all look the same from the outside.
Okay. Everyone wants to know what is the main difference between VMs and Containers.
Docker provides software developers with the following key benefits:
That's it from the part one. Next move on to the technical part of Docker in the next article.