Difference between Docker and Kubernetes
One of the most common early-career interview questions. Nail the answer in 3 sentences.
Question
What is the difference between Docker and Kubernetes?
Answer
Docker is a **container runtime**: it packages an application with its libraries into a lightweight, portable container and runs it on a single machine. Kubernetes is a **container orchestrator**: it takes those containers and manages them across many machines — scheduling them onto nodes, restarting them on failure, rolling out updates and exposing them behind stable network endpoints. Simply put, **Docker builds and runs one container; Kubernetes runs thousands of containers reliably across a cluster.** You typically use Docker to build images, and Kubernetes to deploy them at scale.
See the question and detailed answer above.
Keep reading
You may also like
interview
How does Terraform know what already exists?
The most missed Terraform interview follow-up. Explain state files and how they work.
interview
What happens when you type a URL in the browser?
The definitive end-to-end walkthrough — DNS to render.
interview
Difference between Process and Thread
An OS fundamentals question every backend engineer must nail.
Discussion (0)
No comments yet. Be the first to weigh in.