Overview
Rancher Desktop is an excellent local Kubernetes and container development environment for macOS, Windows, and Linux. It provides a lightweight Kubernetes cluster together with container runtimes such as containerd and Docker compatibility.
However, after upgrading Rancher Desktop, changing Kubernetes versions, modifying container runtimes, or uninstalling previous versions, you may encounter problems such as:
The Rancher Desktop won't start
Running is never achieved with Kubernetes
Failures of Lima virtual machines
Kubernetes configuration error
Runtime error for containers
Nerdctl is not working
Kubectl is unable to connect
Failures during virtual machine startup
The simple process of uninstalling and reinstalling Rancher Desktop is often insufficient because configuration files, Kubernetes settings, Lima virtual machines, and cached data remain.
Rancher Desktop can be completely removed from macOS and reinstalled using this guide.
Prerequisites
Make sure you have the following before you begin:
The Mac OS (Apple Silicon or Intel)
Installed Homebrew
Access to the local administrator
An Internet connection is required
Step 1 – Quit Rancher Desktop
Make sure Rancher Desktop is completely closed before uninstalling.
From the menu bar, quit Rancher Desktop.
Open Activity Monitor and verify that none of the following processes are running:
Desktop version of Rancher
Lima
nerdctl
containerd
Manually terminate any that remain.
During removal, no configuration files are locked.
Step 2 – Uninstall Rancher Desktop
Rancher Desktop can be uninstalled by using the following steps:
brew uninstall rancher
Move the application to the Trash and remove it before continuing.
Step 3 – Restart macOS
Restart your Mac after uninstalling.
sudo reboot -q
or
sudo shutdown -r now
Passwords for local administrators will be prompted.
In addition to unloading any remaining processes, restarting releases any file locks.
Step 4 – Remove Rancher Desktop Configuration
All Rancher Desktop configuration files should be deleted.
rm -rf ~/Library/Application\ Support/rancher-desktop
rm -rf ~/Library/Preferences/io.rancherdesktop.app.plist
rm -rf ~/Library/Caches/rancher-desktop
rm -rf ~/.rd
rm -rf ~/.lima
rm -rf ~/.kube
What these folders contain
Application Support
Information about Rancher Desktop's configuration and runtime.
Preferences
Preferences for the application are contained here.
Cache
Kubernetes images and temporary files are stored here.
~/.rd
Configuration of Rancher Desktop internally.
~/.lima
Stores Lima virtual machines.
~/.kube
Contexts and configurations for Kubernetes are stored here.
By removing these directories, the next installation will start clean.
Step 5 – Remove Lima Virtual Machines
Lima virtual machines may still exist even after deleting configuration files.
The following is a list of all virtual machines:
limactl listThe typical output is:
NAME STATUS
rancher-desktop Running
Rancher Desktop VM should be deleted as follows:
limactl delete rancher-desktop
or
limactl delete 0
The last step is to remove unused resources:
limactl prune
Cleans up disks, snapshots, and unused images.
Step 6 – Restart macOS Again
Once more, restart the computer.
sudo reboot -q
or
sudo shutdown -r now
Before reinstalling virtualisation components, a second restart ensures they are completely unloaded.
Step 7 – Install Rancher Desktop
Using Homebrew, install the latest version.

Join the conversation! Your thoughts help the community grow.