1.What is Docker?
Docker is a containerization platform that provides an easy way to containerize your applications.
Docker can help you to build software images, run those images to create containers and also push these containers to container registries such as DockerHub, Quay.io and so on.
In simple words, you can think of containerization as a concept or technology
and Docker as the Implementation of Containerization
.
2.Why do we need Docker?
Let us understand it with two real-life examples.
Situation 1:
Suppose there are four developers in a team working on a single project. The first developer is working on a Windows system, the second developer is using a Linux system, and the third & fourth ones are working on macOS.
Now, as you see, they are using different environments for developing a single application or software. There will be requirements to set up their respective machines for development and they will need to install different libraries & executables specific to their system.
Such situations, especially in a large organization with a huge system set-up, often cause numerous conflicts and problems throughout the entire software development life cycle.
The containerization tools such as Docker eliminate this problem.
Situation 2:
Suppose the developer has developed an application using PHP and MySQL's latest version. Once he completes his work he reaches out to the Ops team for the deployment of his application.
But the Ops team is using some legacy versions of PHP and MySQL and the application does not run properly in their system.
So, they come back to the developer saying, "The application is not running. The code has some fault !!"
The Developer says, "But, it is running fine in my system."
And then comes Docker to rescue!!
To summarize, Docker is a containerization platform that enables you to create, deploy, and run applications conveniently with the help of containers. It helps you to package your applications with all the required libraries and other dependencies inside a container.
If this post was helpful, please follow and click the ๐ button below to show your support.
_ Thank you for reading!
_Sudipa