What is Docker?
Docker is a containerisation tool which in simple terms packs your application in a box and then you can send it to your friend and he just unpacks it and run without worrying about dependencies or other stuff. It solves biggest problem which is "This runs on my machine" which means this application works on my machine but not on yours.
For example you build a web-application and it runs fine on your machine and you just send it to your colleague developers but they are unable to start application because of some version problems or dependency problems or whatever. But with Docker you simple containerise it into image and send it to other devs and they can use it.
Docker Image vs Container:
Let's hope you come from IT background and you have learned about OOP (Object Oriented Programing) concept and in that we basically create one class and from that one class we create multiple 'n' number of objects. Docker Image is basically a blueprint like your class while Container is actual implementation of blueprint like objects.
Why it is most popular in DevOps?
DevOps stands for "Development" and "Operation" where Developers use Docker to containerise ( create Image ) of their application and send them to different environments like UAD or Production where Operation team handles Deployment and other stuff. It is also used in CI/CD which is known as Heart of DevOps.
Top comments (0)