Kubernetes + Docker
Docker builds OCI container images; Kubernetes schedules and runs them through containerd or CRI-O, the default cloud-native build-and-run pairing.
- Kubernetes
- Docker
- Learning curve
- Hard
- Status
- Actively developed
- Reviewed
- November 2026
- Best for
- Fleets of stateless HTTP services and workers that need rolling deploys and self-healing
- Platform teams offering a shared runtime to many product teams
- Organisations running on several clouds or on-premises that want one deployment API
- Workloads with uneven load that benefit from Horizontal Pod Autoscaler and node autoscaling
- Not ideal for
- Small app with one or two services
- Stateful databases inside the cluster
Overview
This stack pairs Docker as the build-and-package tool with Kubernetes as the cluster scheduler. Developers write Dockerfiles, build OCI images with BuildKit and push them to a registry; Kubernetes then runs those images as Pods across a pool of nodes. Since Kubernetes 1.24 removed dockershim, nodes no longer run Docker Engine (containerd or CRI-O pull and run the same images) so in practice this means Docker at build time and a CRI runtime at run time. Teams reach for it when they need rolling deploys, self-healing and horizontal scaling across many machines.
What's inside
Writing a working Dockerfile takes an afternoon. Running Kubernetes well means understanding Pods, Services, probes, requests and limits, RBAC, CNI networking and storage classes, and debugging across several layers when a rollout stalls.
Kubernetes
Infrastructure
Hosts, deploys or connects the system
Learning: Hard
Status: Active
Docker
Infrastructure
Hosts, deploys or connects the system
Learning: Easy
Status: Active
How it works
A Dockerfile becomes an OCI image in a registry; a declarative manifest tells the Kubernetes control plane what to run, and the kubelet on each node asks containerd or CRI-O to pull and start it. Services and Ingress or Gateway API routes then send traffic to Pods that pass their readiness probes.
- 1.
Other to other
`docker build` (BuildKit, or `docker buildx` for multi-arch images) turns a Dockerfile into a layered OCI image, tagged with the commit SHA and pushed to a registry such as ECR, Artifact Registry, ACR, GHCR or Harbor.
- 2.
Other to infrastructure
CI or `kubectl apply` submits a Deployment manifest referencing the image tag to the kube-apiserver, which authenticates the request, runs admission controllers and stores the desired state in etcd.
- 3.
Infrastructure to infrastructure
The Deployment controller creates a ReplicaSet and Pods; kube-scheduler places each Pod on a node that fits its CPU and memory requests, affinity rules, taints and tolerations.
- 4.
Infrastructure to runtime
The kubelet calls the Container Runtime Interface; containerd or CRI-O pulls the image layers and starts the container with the cgroup limits, volumes and security context from the Pod spec.
- 5.
Runtime to infrastructure
Once the readiness probe passes, the Pod's IP joins the Service's endpoints, and an ingress controller or Gateway API implementation routes external requests to it; failing liveness probes trigger restarts.
Strengths and drawbacks
Strengths
One image from laptop to production
The same Docker-built OCI image runs under `docker run` locally, in CI and on any conformant cluster, because containerd and CRI-O consume the identical image format.
Declarative, self-healing runtime
Controllers continuously reconcile desired state: crashed containers restart, Pods on failed nodes are rescheduled, and rolling updates replace replicas while readiness probes hold back broken versions.
Portable across providers
EKS, GKE, AKS and on-premises distributions expose the same Kubernetes API, so manifests, kubectl workflows and most tooling carry over between them.
Largest cloud-native ecosystem
CNCF projects such as Prometheus, cert-manager, Argo CD, Flux, KEDA and Cilium build on the Kubernetes API, and every major CI system can build and push Docker images.
Drawbacks
Docker is not the node runtime
Since dockershim was removed in 1.24, `docker ps` on a node shows nothing useful; debugging uses `crictl` or `kubectl debug`. Anything that mounted `/var/run/docker.sock` (old CI builders, log agents) must be replaced or run via cri-dockerd.
Upgrade cadence and operational load
Kubernetes ships about three minor releases a year and each is supported for roughly a year, so control planes, node images, add-ons and deprecated APIs need regular upgrade work even on managed services.
Requests and limits are easy to get wrong
Missing or badly sized CPU and memory requests lead to OOMKilled containers, CPU throttling, noisy neighbours or half-empty nodes; right-sizing needs metrics and ongoing tuning.
Image hygiene is on you
Bloated base images, containers running as root, mutable `latest` tags and unscanned dependencies all pass through Docker unchallenged; teams add multi-stage builds, slim or distroless bases, image scanning and admission policies themselves.
Registry limits and desktop licensing
Docker Hub rate-limits pulls, so clusters should pull through a mirror or private registry. Docker Desktop on developer machines requires a paid subscription for larger companies; Podman, Rancher Desktop or Colima are common substitutes.
Scores
Editorial ratings out of 10, comparable across every stack in the guide. They are judgement, not benchmarks. How we score
- Speed of building
- 5.8 out of 10, catalog average 7.7
- Ease of learning
- 5.5 out of 10, catalog average 7.2
- Scalability
- 9.6 out of 10, catalog average 7.6
- Performance
- 8.2 out of 10, catalog average 7.5
- Maintainability
- 6.8 out of 10, catalog average 7.2
- Ecosystem
- 9.6 out of 10, catalog average 8.2
- Flexibility
- 9.2 out of 10, catalog average 7.4
How quickly a team ships features
Higher means easier to pick up
How far it grows before a redesign
Speed of the running application
How well the codebase ages
Libraries, hosting, docs and hiring
How many kinds of product it suits
How it scales
Grows from a single managed cluster to fleets of regional clusters; the practical limits are usually etcd, networking, upgrade logistics and team process rather than the scheduler.
- Starting outMVP and first users
- One managed cluster (EKS, GKE Autopilot or AKS) with a few nodes, images built in CI with `docker build` and deployed with `kubectl apply` from the pipeline.
- GrowingReal traffic, a few engineers
- Separate staging and production clusters, Horizontal Pod Autoscaler with Cluster Autoscaler or Karpenter, a private registry with image scanning, and GitOps deploys through Argo CD or Flux.
- LargeHeavy traffic or data
- Multiple node pools (spot, GPU, ARM fed by multi-arch buildx images), network policies via Cilium or Calico, Gateway API for traffic routing and per-team namespaces with resource quotas.
- EnterpriseMany teams and regions
- Fleets of clusters managed through Cluster API, Rancher or cloud fleet tooling, admission policy with Kyverno or OPA Gatekeeper, signed images, and an internal developer platform that hides raw YAML.
Where it fits
Common projects, from best fit to worst.
Shared platform for many service teams
Namespaces, RBAC, quotas and a common build-and-deploy pipeline let dozens of services ship independently on shared infrastructure.
Great fit
Queue workers and scheduled jobs
Jobs, CronJobs and KEDA-driven autoscaling run containerised workers that scale with queue depth and shut down when idle.
Good fit
Stateful databases inside the cluster
Operators such as CloudNativePG make it workable, but persistent volumes, backups and failover add risk that a managed database service avoids.
Workable
Small app with one or two services
A single web app and database rarely justifies cluster upgrades, ingress setup and RBAC; a PaaS or Docker Compose on one VM ships faster and costs less.
Poor fit
Alternatives
Similar stacks, and when you would choose them instead.
- Kubernetes + Helm
Pick it when the hard part is packaging, versioning and reusing many manifests or installing third-party software, rather than building and running your own images.
CompareKubernetes + Docker with Kubernetes + Helm - Docker Compose + PostgreSQL
Pick it for local development or a single-server deployment where a cluster's operational cost is not justified.
CompareKubernetes + Docker with Docker Compose + PostgreSQL - Nginx + Docker
Pick it when a handful of containers behind one reverse proxy on a VM is all the traffic needs.
CompareKubernetes + Docker with Nginx + Docker
Sources
Reviewed on November 19, 2026 against the documentation below. Found something out of date? Suggest a correction. Read our methodology.
- Kubernetes documentation
Official Kubernetes docs.
- Kubernetes: Container Runtimes
Explains the CRI runtimes (containerd, CRI-O) that run images on nodes after dockershim's removal.
- Docker Build documentation
Official docs for BuildKit, Dockerfiles and multi-platform builds.
- CNCF Annual Survey
CNCF surveys document Kubernetes as the dominant container orchestrator.
Related stacks
Stacks that share technologies with Kubernetes + Docker.
Terraform + AWS
Infrastructure as code with Terraform provisioning Amazon Web Services resources.
- Terraform
- AWS
Learning: Moderate
Terraform + Google Cloud
Terraform (or its open-source fork OpenTofu) provisioning Google Cloud projects, IAM, networking and services through the google and google-beta providers.
- Terraform
- Google Cloud
Learning: Moderate
Terraform + Azure
Terraform (or OpenTofu) provisioning Microsoft Azure through the azurerm provider, with azapi for the newest ARM features and azuread for Entra ID objects.
- Terraform
- Azure
Learning: Moderate