<p>I have issue with version 3.1 of Docker Desktop and on enabling kubernetes its always stuck at Starting
looking at logs in i can see repeating the following log from (AppData/Local/Docker/log.txt):</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>\"https://kubernetes.docker.internal:6443/apis/coordination.k8s.io/v1/namespaces/kube-node-lease/leases/docker-desktop\": net/http: TLS handshake timeout"
[16:15:55.267][GoBackendProcess  ][Info   ] msg="external: POST /events 200 \"DockerDesktopGo\" \"\""
[16:16:06.268][ApiProxy          ][Info   ] msg="cannot get lease for master node: Get \"https://kubernetes.docker.internal:6443/apis/coordination.k8s.io/v1/namespaces/kube-node-lease/leases/docker-desktop\": net/http: TLS handshake timeout"
[16:16:06.268][GoBackendProcess  ][Info   ] msg="external: POST /events 200 \"DockerDesktopGo\" \"\""</code></pre>
</div>
</div>
</p>
<p>I have tried deleting the pki folder inside AppData/Local/Docker , but without any success.</p>

Калоян Ников
<p>This looks like a common issue reported <a href="https://github.com/docker/for-win/issues/9324" rel="nofollow noreferrer">here</a> or <a href="https://github.com/docker/for-mac/issues/5027" rel="nofollow noreferrer">here</a>, which occurs also on <strong>MacOS</strong>. As per <a href="https://github.com/docker/for-mac/issues/5027#issuecomment-718076014" rel="nofollow noreferrer">this comment</a>, apart from deleting <code>pki</code>, you should also remove <code>.kube</code> directory and restart <code>Docker</code>:</p>
<blockquote>
<p>I have workarounded as:</p>
<pre><code>rm -rf ~/Library/Group\ Containers/group.com.docker/pki/
rm -rf ~/.kube
</code></pre>
<p>And restarting docker</p>
</blockquote>
<p>As mentioned in <a href="https://github.com/docker/for-win/issues/9324#issuecomment-740631055" rel="nofollow noreferrer">this comment</a>, the respective directory on Windows can be found in:</p>
<pre><code>C:\Users\&lt;USER&gt;\AppData\Local\Docker
</code></pre>
<p>If none of the above helps, as the last resort solution you may try to completely re-install your <strong>Docker Desktop</strong> as there might be some remnants of the previous installation causing the issue. Compare with <a href="https://github.com/docker/for-mac/issues/5027#issuecomment-776260603" rel="nofollow noreferrer">this comment</a>.</p>
