You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/manuals/desktop/features/kubernetes.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,14 @@ aliases:
10
10
weight: 60
11
11
---
12
12
13
-
Docker Desktop includes a standalone Kubernetes server and client, as well as Docker CLI integration, enabling local Kubernetes development and testing directly on your machine.
13
+
Docker Desktop includes a standalone Kubernetes server and client, as well as Docker CLI integration, enabling local Kubernetes development and testing directly on your machine.
14
14
15
-
The Kubernetes server runs as a single or multi-node cluster within a Docker container. This lightweight setup helps you explore Kubernetes features, test workloads, and work with container orchestration in parallel with other Docker functionalities.
15
+
The Kubernetes server runs as a single or multi-node cluster, within Docker container(s). This lightweight setup helps you explore Kubernetes features, test workloads, and work with container orchestration in parallel with other Docker functionalities.
16
16
17
17
Kubernetes on Docker Desktop runs alongside other workloads, including Swarm services and standalone containers.
18
18
19
+

20
+
19
21
## What happens when I enable Kubernetes in Docker Desktop?
20
22
21
23
When you enable Kubernetes in Docker Desktop, the following actions are triggered in the Docker Desktop backend and VM:
@@ -30,18 +32,18 @@ Turning the Kubernetes server on or off in Docker Desktop does not affect your o
30
32
## Install and turn on Kubernetes
31
33
32
34
1. Open the Docker Desktop Dashboard and navigate to **Settings**.
33
-
2. Select the **Kubernetes** tab.
35
+
2. Select the **Kubernetes** tab.
34
36
3. Toggle on **Enable Kubernetes**.
35
-
4. Choose your cluster provisioning method. You can choose either **Kubeadm** or **kind** if you are signed in and are using Docker Desktop version 4.38 or later.
37
+
4. Choose your cluster provisioning method. You can choose either **Kubeadm** or **kind** if you are signed in and are using Docker Desktop version 4.38 or later.
36
38
37
-
If you select **kind** you can also choose the Kubernetes version and the number of nodes.
39
+
If you select **kind** you can also choose the Kubernetes version and the number of nodes.
38
40
5. Select **Apply & Restart** to save the settings. This sets up the images required to run the Kubernetes server as containers, and installs the `kubectl` command-line tool on your system at `/usr/local/bin/kubectl` (Mac) or `C:\Program Files\Docker\Docker\Resources\bin\kubectl.exe` (Windows).
39
41
40
42
> [!NOTE]
41
43
>
42
44
> Docker Desktop for Linux does not include `kubectl` by default. You can install it separately by following the [Kubernetes installation guide](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/). Ensure the `kubectl` binary is installed at `/usr/local/bin/kubectl`.
43
45
44
-
When Kubernetes is enabled, its status is displayed in the Docker Desktop Dashboard footer and the Docker menu.
46
+
When Kubernetes is enabled, its status is displayed in the Docker Desktop Dashboard footer and the Docker menu.
45
47
46
48
You can check which version of Kubernetes you're on with:
47
49
@@ -53,7 +55,7 @@ $ kubectl version
53
55
54
56
#### Kubernetes dashboard
55
57
56
-
Once Kubernetes is installed and set up, you can select the **Deploy the Kubernetes Dashboard into cluster** setting so you can manage and monitor your Kubernetes clusters and applications more easily.
58
+
Once Kubernetes is installed and set up, you can select the **Deploy the Kubernetes Dashboard into cluster** setting so you can manage and monitor your Kubernetes clusters and applications more easily.
> If the `kubectl` config get-contexts command returns an empty result, try:
82
-
>
84
+
>
83
85
> - Running the command in the Command Prompt or PowerShell.
84
86
> - Setting the `KUBECONFIG` environment variable to point to your `.kube/config` file.
85
87
@@ -111,13 +113,13 @@ Kubernetes clusters are not automatically upgraded with Docker Desktop updates.
111
113
$ kubectl config use-context docker-desktop
112
114
```
113
115
You can then try checking the logs of the [Kubernetes system containers](#viewing-system-containers) if you have enabled that setting.
114
-
- If you're experiencing cluster issues after updating, reset your Kubernetes cluster. Resetting a Kubernetes cluster can help resolve issues by essentially reverting the cluster to a clean state, and clearing out misconfigurations, corrupted data, or stuck resources that may be causing problems. If the issue still persists, you may need to clean and purge data, and then restart Docker Desktop.
116
+
- If you're experiencing cluster issues after updating, reset your Kubernetes cluster. Resetting a Kubernetes cluster can help resolve issues by essentially reverting the cluster to a clean state, and clearing out misconfigurations, corrupted data, or stuck resources that may be causing problems. If the issue still persists, you may need to clean and purge data, and then restart Docker Desktop.
115
117
116
118
## Turn off and uninstall Kubernetes
117
119
118
120
To turn off Kubernetes in Docker Desktop:
119
121
120
122
1. From the Docker Desktop Dashboard, select the **Settings** icon.
121
-
2. Select the **Kubernetes** tab.
123
+
2. Select the **Kubernetes** tab.
122
124
3. Deselect the **Enable Kubernetes** checkbox.
123
125
4. Select **Apply & Restart** to save the settings. This stops and removes Kubernetes containers, and also removes the `/usr/local/bin/kubectl` command.
0 commit comments