DEV Community

Bhargav Krishna
Bhargav Krishna

Posted on • Edited on

Docker

Docker the buzzword. Its the most moving word as of now. Do you have any clue about why it is used, how it works. Try not to stress, by the time you finish reading this you'll have a clear idea about docker.

Why?

Let's assume you've node 15.0.0 installed globally on your system. Your friend gave you a project to checkout using 16.0.0. So to look at the project you should install 16.0.0 dependencies globally on your system. If in case you want to check out all the friend's projects and all of them have different versions. It will be very difficult to handle this right? There is often mismatch of project dependencies and their versions between system.

So, to take care of this issue docker was introduced.

What?

Now you have an idea of why docker was introduced. So, now let's find out what is docker?.

Docker is a container management service. New word Container right? The container is a package of code and all the dependencies required to run that application. The container is an isolated environment. Actually, containers are light in weight, you can easily share containers. It's like moving software from one computing environment to another and having it operate consistently.
Containers

Docker provides tooling and a stage to manage the lifecycle of your containers.

In this way, with the help of docker, we can address the issue of the previously mentioned example.
Assuming, if our friend dockerizes the application and sends it to us, then there will be no issue of mismatch of dependencies. There is no worry about the versions of the system because the application runs on containers that have all the needed dependencies.

To sum it all up:
Docker is a tool to create and manage containers that are just isolated movable environments having your code.

I hope you found this article useful. Reach out to me on Twitter to share your feedback or for any queries. I'd be more than happy to help.

Thanks for reading, See you next time.

Top comments (0)