DEV Community

Cover image for Kubernetes vs Docker

Kubernetes vs Docker

hb profile image Henry Boisdequin ・1 min read

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?


Discussion (4)

Editor guide
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.

hb profile image
Henry Boisdequin Author

Thanks, it makes sense now.

adithyay328 profile image

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.

hb profile image
Henry Boisdequin Author

Thanks, that helped a lot!