Rancher Desktop installation - Windows with WSL2

I installed Rencher Desktop 1.15.0 on Windows 10. The Diagnostics tab shows “Rancher Desktop cannot automatically convert the provided kubeconfig file to a symlink due to existing configurations within that file. To resolve this issue, you will need to manually create the symlink to ensure existing configurations are preserved and to prevent any loss of configuration.”

Prior to installing Rancher Desktop, I already had WSL2 installed with docker and minikube. Right now I am also unable to build containers in WSL. "docker build -t … " simply hangs.

Looking further, diagnostics.log shows: “Error verifying kubeconfig symlinks: The kubeConfig contains non-Rancher Desktop configuration in distro Ubuntu”.

Is there any way that I would be able to run docker directly from WSL as well as using Rancher Desktop?

1 Like

I have encountered this issue recently. To solve this issue what I did are:

  1. I went to WSL (in my case I use ubuntu)
  2. Run cd to go to the ~/ directory
  3. remove .config file inside .kube directory
  4. restart rancher desktop

After that rancher shows no error and I can run docker command in WSL.

1 Like