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
Explain the Kafka message flow end-to-end
A crisp walkthrough of what happens between a producer's `send()` call and a consumer's `poll()` receiving the message.
interview
Explain the CAP Theorem in one paragraph
A distributed-systems classic that trips senior engineers as often as juniors.
Discussion (0)
No comments yet. Be the first to weigh in.