<p>I have downloaded Kubernetes latest version from Kubernetes official site and referenced it in the PATH above the reference for Docker but It is still showing the version installed with Docker Desktop.</p>

<p>I understand that docker comes with Kubernetes installed out of the box but the docker version '1.15.5' doesn't work correctly with my Minikube version which is 'v1.9.2' which is causing me problems.</p>

<p>any suggestions on how to fix this issues? should I remove the Kubernetes binary from <code>C:\Program Files\Docker\Docker\resources\bin</code> I don't think that will be a good idea.</p>

<p>Can someone help me tackle this issue, along with some explanation on how the versions work with each other? Thanks</p>

Zeeshan Adil
<p>This is happening because windows always give you the first comment found in the PATH, both kubectl versions (Docker and yours) are in the PATH but Docker PATH in being referenced before your kubectl PATH. </p>

<p>To solve this really depends on what you need. If you are not using your Docker Kubernetes you have two alternatives: </p>

<p>1 - Fix your PATH and make sure that your kubectl PATH is referenced before Docker PATH.</p>

<p>2 - Replace Docker kubectl to yours.</p>

<p>3- Make sure you restart your PC after doing these changes, as kubectl will automatically update the configuration to point to the newer kubectl version the next time you use the <code>minikube start</code> command with a correct <code>--kubernetes-version</code>:</p>

<p>If you are using both from time to time, I would suggest you to create a script that will change your PATH according to your needs. </p>

<p>According to the <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/#before-you-begin" rel="nofollow noreferrer">documentation</a> you must use a kubectl version that is within one minor version difference of your cluster. For example, a v1.2 client should work with v1.1, v1.2, and v1.3 master. Using the latest version of kubectl helps avoid unforeseen issues.</p>
