<p>I set up Docker for Desktop (Windows) and enabled Kubernetes in the gui. I am behind a Proxy and added .internal to the no_proxy environmental variable. <br>
kubectl config get-contexts shows that I am in the docker-desktop context. <br>
kubectl config view shows the following <strong>config</strong>:</p>
<pre><code>clusters:
- cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://kubernetes.docker.internal:6443
  name: docker-desktop
contexts:
- context:
    cluster: docker-desktop
    user: docker-desktop
  name: docker-desktop
current-context: docker-desktop
kind: Config
preferences: {}
users:
- name: docker-desktop
  user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED 
</code></pre>
<p>Now whenever I try to run a command like kubectl cluster-info or kubectl get pod, the following <strong>Error-Message</strong> is shown:
<br><br>
<strong>Unable to connect to the server: dial tcp: lookup kubernetes.docker.internal on 160.50.250.20:53: dial udp 160.50.250.20:53: connect: network is unreachable</strong></p>

Daniel_Hafe
<p>As a solution i edited the config file which is in</p>
<pre><code>~/.kube/config
</code></pre>
<p>I replaced &quot;kubernetes.docker.internal&quot; with &quot;localhost&quot;</p>
