DEV Community

Cover image for Docker (🐳) & Kubernetes (☸) in simple terms.
Ayush Rudani
Ayush Rudani

Posted on • Updated on

Docker (🐳) & Kubernetes (☸) in simple terms.

Please explain kubernetes to me as I am 5 years old.

Okay, so imagine you have a toy box full of little toy cars. Each toy car is like a computer program that does a specific job, like driving a train or flying a plane. Now, imagine you have a lot of toy boxes and you want to make sure that all the toy cars are in the right toy boxes, and that the toy boxes are in the right room. Kubernetes is like a special helper that makes sure all the toy cars are in the right toy boxes and that the toy boxes are in the right room. It also makes sure that if you want more toy cars to play with, it will get them for you and put them in the right toy boxes. And if some toy cars break, it will take them out and fix them so you can play with them again.

So in summary, Kubernetes is a tool that helps you to organize and manage your computer programs (like toy cars) in a smart way so that you can play with them easily.

Okay, then. So, what exactly is Docker?

Docker is a tool that helps you to pack your computer programs (like toy cars) into special containers (like toy boxes) so that they can run on any computer.

Think of Docker like the toy box itself, it's a containerization technology that allows developers to package their application and dependencies together in a container, which is a single executable package that includes everything needed to run the application code.
It makes it easy to move the toy cars (your computer programs) around, from your computer to a friend's computer, or even to a big toy store (a computer server) where lots of people can play with them.

So, to summarise, while Kubernetes is a tool that helps you to organize and manage your computer programs in a smart way, Docker is a tool that helps you to package your computer programs in a way that makes it easy to move them around and run them on any computer.


For those who are ready to roll up their sleeves and dive right into Docker & Kubernetes, check out this hands-on tutorial that takes you through the ins and outs of it.

Huge thanks 🙌 to @mariuszmspace for hooking me up with these awesome tutorial links!

Top comments (0)