The kubectl config is locked

When trying to enable Kubernetes on Docker Desktop I get this message:

The kubectl config cannot be modified while the lock is held. The lock has been held for a long time which means it may have leaked.
Unlock the config?

When I click unlock, it shows Kubernetes is starting at the bottom but it never goes into running state.
Any help is appreciated

I’m having the same issue with both the release and edge version. Were you able to get this solved?

Me too having same issue.any solutions please

Hi team, I am facing the same issue. Is there any way to get it running?
Tried reinstalling it and resetting but no luck so far.

I think I figured it out… after many Uninstall/Installs and deleting the docker folders there was no luck.
Following worked, but I dont know which one to be precise…
Delete the folder - C:\Users<Username>.kube (create a backup just in case)
Enabled the settings as shown below
image
Refresh
And then start the Kubernetes again

delete C:\Users$USER.kube\config.lock works for me