DEV Community

Cover image for Kubernetes vs Docker
Henry Boisdequin
Henry Boisdequin

Posted on

Kubernetes vs Docker

I've been learning Kubernetes and Docker and I don't really quite understand the difference between them yet. Could you explain the difference between Kubernetes and Docker like I'm five?

Henry

Top comments (4)

Collapse
 
nestedsoftware profile image
Nested Software

Docker by itself allows you to run an application in a container. Kubernetes is about orchestrating multiple containers across multiple hosts. It is similar to docker swarm.

Collapse
 
hb profile image
Henry Boisdequin

Thanks, it makes sense now.

Collapse
 
adithyay328 profile image
adithyay328

Docker is what you actually put your code in and run it in, Kubernetes is an optional controller service. It can automatically scale up your code by increasing the number of containers, it can ensure reliability by automatically spawning new containers in the case of one of them crashing, it can automatically spawn containers to conform to a policy that you define, such as number of running containers at any point in time, and it supports load balancing of HTTP across your containers to horizontally scale with ease.

These are just some of the cool thing Kubernetes does, but there's a lot more cool stuff if you're interested.

Collapse
 
hb profile image
Henry Boisdequin

Thanks, that helped a lot!