mirror of https://github.com/docker/docs.git
parent
25a464935e
commit
8198ce5208
|
@ -17,19 +17,23 @@ Turning on Kubernetes allows you to deploy
|
||||||
your workloads in parallel, on Kubernetes, Swarm, and as standalone containers. Turning on or off the Kubernetes server does not affect your other
|
your workloads in parallel, on Kubernetes, Swarm, and as standalone containers. Turning on or off the Kubernetes server does not affect your other
|
||||||
workloads.
|
workloads.
|
||||||
|
|
||||||
## Turn on Kubernetes
|
## Install and turn on Kubernetes
|
||||||
|
|
||||||
To turn on Kubernetes in Docker Desktop:
|
|
||||||
1. From the Docker Dashboard, select the **Settings**.
|
1. From the Docker Dashboard, select the **Settings**.
|
||||||
2. Select **Kubernetes** from the left sidebar.
|
2. Select **Kubernetes** from the left sidebar.
|
||||||
3. Next to **Enable Kubernetes**, select the checkbox.
|
3. Next to **Enable Kubernetes**, select the checkbox.
|
||||||
4. Select **Apply & Restart** to save the settings and then select **Install** to confirm. This instantiates images required to run the Kubernetes server as containers, and installs the `/usr/local/bin/kubectl` command on your machine.
|
4. Select **Apply & Restart** to save the settings and then select **Install** to confirm. This instantiates images required to run the Kubernetes server as containers, and installs the `/usr/local/bin/kubectl` command on your machine.
|
||||||
|
|
||||||
|
> **Important**
|
||||||
|
>
|
||||||
|
> The `kubectl` binary is not automatically packaged with Docker Desktop for Linux. To install the kubectl command for Linux, see [Kubernetes documentation](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/). It should be installed at `/usr/local/bin/kubectl`.
|
||||||
|
{ .important}
|
||||||
|
|
||||||
By default, Kubernetes containers are hidden from commands like `docker ps`, because managing them manually is not supported. Most users do not need this option. To see these internal containers, select **Show system containers (advanced)**.
|
By default, Kubernetes containers are hidden from commands like `docker ps`, because managing them manually is not supported. Most users do not need this option. To see these internal containers, select **Show system containers (advanced)**.
|
||||||
|
|
||||||
When Kubernetes is turned on and running, an additional status bar in the Docker Dashboard footer and Docker menu displays.
|
When Kubernetes is turned on and running, an additional status bar in the Docker Dashboard footer and Docker menu displays.
|
||||||
|
|
||||||
> Note
|
> **Note**
|
||||||
>
|
>
|
||||||
> Docker Desktop does not upgrade your Kubernetes cluster automatically after a new update. To upgrade your Kubernetes cluster to the latest version, select **Reset Kubernetes Cluster**.
|
> Docker Desktop does not upgrade your Kubernetes cluster automatically after a new update. To upgrade your Kubernetes cluster to the latest version, select **Reset Kubernetes Cluster**.
|
||||||
|
|
||||||
|
@ -40,8 +44,6 @@ at `/usr/local/bin/kubectl` on Mac and at `C:\Program Files\Docker\Docker\Resour
|
||||||
variable, so you may need to type the full path of the command or add it to
|
variable, so you may need to type the full path of the command or add it to
|
||||||
the `PATH`.
|
the `PATH`.
|
||||||
|
|
||||||
The kubectl binary is not automatically packaged with Docker Desktop for Linux. To install the kubectl command for Linux, see [Kubernetes documentation](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/). It should be installed at `/usr/local/bin/kubectl`.
|
|
||||||
|
|
||||||
If you have already installed `kubectl` and it is
|
If you have already installed `kubectl` and it is
|
||||||
pointing to some other environment, such as `minikube` or a GKE cluster, ensure you change the context so that `kubectl` is pointing to `docker-desktop`:
|
pointing to some other environment, such as `minikube` or a GKE cluster, ensure you change the context so that `kubectl` is pointing to `docker-desktop`:
|
||||||
|
|
||||||
|
@ -72,7 +74,7 @@ docker-desktop Ready master 3h v1.19.7
|
||||||
For more information about `kubectl`, see the
|
For more information about `kubectl`, see the
|
||||||
[`kubectl` documentation](https://kubernetes.io/docs/reference/kubectl/overview/).
|
[`kubectl` documentation](https://kubernetes.io/docs/reference/kubectl/overview/).
|
||||||
|
|
||||||
## Turn off Kubernetes
|
## Turn off and uninstall Kubernetes
|
||||||
|
|
||||||
To turn off Kubernetes in Docker Desktop:
|
To turn off Kubernetes in Docker Desktop:
|
||||||
1. From the Docker Dashboard, select the **Settings** icon.
|
1. From the Docker Dashboard, select the **Settings** icon.
|
||||||
|
|
|
@ -8,7 +8,7 @@ description: Learn how to deploy your application
|
||||||
|
|
||||||
- Complete all the previous sections of this guide, starting with [Containerize
|
- Complete all the previous sections of this guide, starting with [Containerize
|
||||||
a .NET application](containerize.md).
|
a .NET application](containerize.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker
|
||||||
Desktop.
|
Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
|
@ -8,7 +8,7 @@ description: Learn how to deploy your Go application
|
||||||
|
|
||||||
- Complete all the previous sections of this guide, starting with [Build
|
- Complete all the previous sections of this guide, starting with [Build
|
||||||
your Go image](build-images.md).
|
your Go image](build-images.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker
|
||||||
Desktop.
|
Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
|
@ -7,7 +7,7 @@ description: Learn how to develop locally using Kubernetes
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Complete all the previous sections of this guide, starting with [Build your Java image](build-images.md).
|
- Complete all the previous sections of this guide, starting with [Build your Java image](build-images.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker Desktop.
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ description: Learn how to deploy locally to test and debug your Kubernetes deplo
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Complete all the previous sections of this guide, starting with [Containerize a Node.js application](containerize.md).
|
- Complete all the previous sections of this guide, starting with [Containerize a Node.js application](containerize.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker Desktop.
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ description: Learn how to deploy your application
|
||||||
|
|
||||||
- Complete all the previous sections of this guide, starting with [Containerize
|
- Complete all the previous sections of this guide, starting with [Containerize
|
||||||
a PHP application](containerize.md).
|
a PHP application](containerize.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker
|
||||||
Desktop.
|
Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
|
@ -7,7 +7,7 @@ description: Learn how to develop locally using Kubernetes
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Complete all the previous sections of this guide, starting with [Containerize a Python application](containerize.md).
|
- Complete all the previous sections of this guide, starting with [Containerize a Python application](containerize.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker Desktop.
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ description: Learn how to test your Rust deployment locally using Kubernetes
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Complete the previous sections of this guide, starting with [Develop your Rust application](develop.md).
|
- Complete the previous sections of this guide, starting with [Develop your Rust application](develop.md).
|
||||||
- [Turn on Kubernetes](/desktop/kubernetes/#turn-on-kubernetes) in Docker Desktop.
|
- [Turn on Kubernetes](/desktop/kubernetes/#install-and-turn-on-kubernetes) in Docker Desktop.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue