'Docker Desktop 4.7.1 Kubernetes Stuck at starting (Already Re-Installed)
So after updating to Docker Desktop 4.7.1, local kubernetes (v1.22.5) now is stuck at starting.
Uninstalled and re-installed latest Docker Desktop (4.7.1) but after restart, issue persists.
Running kubectl get all -n kube-system
Returns Unable to connect to the server: EOF
So clearly kubernetes isn't running.
Any help is appreciated, thanks.
P.S. I am contemplating now on going back to Docker Desktop 4.6.x if I can't resolve this, but I do wish to be on latest Docker Desktop if possible.
I am on Windows 10
Solution 1:[1]
Ok after couple of hours of trouble shooting I was able to resolved the issue.
Step 1: Reset Docker Desktop To Factory Defaults
Right click docker icon on system tray, then choose troubleshoot, then click the Reset to factory defaults button.
Step 2: Close Docker Desktop
Step 3: Delete the .kube folder
It is located on C:\Users\<user name>\.kube
Make a backup for it if you want
Step 4: Delete the pki folder
It is located on C:\Users\<user name>\AppData\Local\Docker\pki
Make a backup for it if you want
Step 5: Add some entries in your hosts file
192.168.1.5 host.docker.internal
192.168.1.5 gateway.docker.internal
127.0.0.1 docker-for-desktop
127.0.0.1 kubernetes.docker.internal
Step 6: Run Docker Desktop As Administrator
That's it, I was able to run local kubernetes cluster again
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jplus2 |



