Skip to content

Commit 97dfc02

Browse files
authored
Update install-kubectl.md
Add note: Docker for Windows adds its own kubectl to PATH
1 parent aa96765 commit 97dfc02

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

content/en/docs/tasks/tools/install-kubectl.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,15 @@ If you are on macOS and using [Macports](https://macports.org/) package manager,
179179
To find out the latest stable version (for example, for scripting), take a look at [https://storage.googleapis.com/kubernetes-release/release/stable.txt](https://storage.googleapis.com/kubernetes-release/release/stable.txt).
180180
181181
2. Add the binary in to your PATH.
182-
3. Test to ensure the version you installed is up-to-date:
182+
3. Test to ensure the version of `kubectl` is the same as downloaded:
183183
184184
```
185185
kubectl version
186186
```
187+
{{< note >}}
188+
[Docker for Windows](https://docs.docker.com/docker-for-windows/#kubernetes) adds its own version of `kubectl` to PATH.
189+
If you have installed Docker before, you may need to place your PATH entry before the one added by Docker installer or remove the Docker's `kubectl`.
190+
{{< /note >}}
187191
188192
### Install with Powershell from PSGallery
189193

0 commit comments

Comments
 (0)