Docker is for building a computer program to run on a single computer.
Kubernetes is for building a cluster, often across many computers with many programs.
They work together.