---
title: "How to Set Up a Kubernetes Cluster on Docker Desktop"
description: "Docker Desktop can run a single-node Kubernetes cluster locally by enabling it under Settings > Kubernetes, giving developers a place to test pods, services, ConfigMaps, secrets and CI/CD pipelines without a remote cluster."
url: "https://swe.quest/articles/how-to-set-up-a-kubernetes-cluster-on-docker-desktop-5bb34fca4cff3c73"
canonical: "https://www.docker.com/blog/how-to-set-up-a-kubernetes-cluster-on-docker-desktop/"
source: "Docker"
published: "2025-01-07"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["kubernetes","containers","debugging","developer-tools"]
---

# How to Set Up a Kubernetes Cluster on Docker Desktop

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-01-07, 7 min read, How-to. Original: [https://www.docker.com/blog/how-to-set-up-a-kubernetes-cluster-on-docker-desktop/](https://www.docker.com/blog/how-to-set-up-a-kubernetes-cluster-on-docker-desktop/)

## Summary

Docker Desktop can run a single-node Kubernetes cluster locally by enabling it under Settings \> Kubernetes, giving developers a place to test pods, services, ConfigMaps, secrets and CI/CD pipelines without a remote cluster. It is not intended for production. For startup failures, generate a diagnostics bundle with com.docker.diagnose, grep the logs for errors, and check kubelet.log and the kube/ describe outputs. A common cause is failure to pull the 10 required images such as coredns from registry.k8s.io. The workaround is to save the missing image on a working machine running the same Docker Desktop version, load and tag it locally, then re-enable Kubernetes. Resetting the cluster is the last resort.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- kubectl basics

## Keywords

Docker Desktop, Kubernetes, kubectl, kubelet, CoreDNS

## Related posts

- [Master Docker and VS Code: Supercharge Your Dev Workflow](https://swe.quest/articles/master-docker-and-vs-code-supercharge-your-dev-workflow-6114b48c12630cac.md): Docker · 2025-04-03 · Medium · 9 min read · Containers, Developer tools, Developer productivity, CI/CD
  Docker containers paired with VS Code's Docker extension give every developer an identical environment and remove "works on my machine" bugs.
- [2023-03-08 incident: A deep dive into the platform-level recovery](https://swe.quest/articles/2023-03-08-incident-a-deep-dive-into-the-platform-level-recovery-ad2b07fa89f3cad4.md): Datadog Engineering · 2023-06-16 · Hard · 21 min read · Incidents & postmortems, Kubernetes, Cloud platforms, Capacity planning, Networking
  Recovering from Datadog's March 8, 2023 multi-region outage, triggered by a systemd-networkd patch on Ubuntu 22.04 that cut network connectivity for nodes running Cilium, required restoring Kubernetes clusters in a strict order: parent control planes, then child control planes hosted on parent nodes, then application nodes.
- [Breaking down OpenAI's outage: How to avoid a hidden DNS dependency in Kubernetes](https://swe.quest/articles/breaking-down-openai-s-outage-how-to-avoid-a-hidden-dns-dependency-in-kubernetes-4aeac94c226460a9.md): Render · 2024-12-17 · Medium · 6 min read · Kubernetes, DNS, Incidents & postmortems, Resilience, SRE
  CoreDNS doesn't need the Kubernetes API server to answer queries, but it does need it to initialize.
- [Streamlining Local Development with Dev Containers and Testcontainers Cloud](https://swe.quest/articles/streamlining-local-development-with-dev-containers-and-testcontainers-cloud-050962d8604171c1.md): Docker · 2024-08-27 · Medium · 7 min read · Containers, Testing, Developer tools, Java & JVM
  Testcontainers-based tests and services can run inside a dev container by giving the container Docker access, either through the Docker-in-Docker feature or by swapping in the Testcontainers Cloud feature, which runs an agent that points Docker calls at a remote cloud environment.
- [Break Stuff on Purpose](https://swe.quest/articles/break-stuff-on-purpose-87dc2221ffb9f4a6.md): Slack Engineering · 2024-12-10 · Medium · 5 min read · Chaos engineering, Incidents & postmortems, Observability, SRE
  Slack's internal Kibana cluster failed in January 2024 after running out of disk, a consequence of co-locating its Elasticsearch storage on the same hosts as the application.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
