CleanMate

All guides · macOS · Updated

Colima, Lima, Podman machine, minikube and Rancher Desktop: leftover Linux VMs filling your Mac

Docker alternatives on a Mac run a hidden Linux VM with its own disk. How to find the Colima, Lima, Podman machine, minikube and Rancher Desktop VMs you forgot, see their size and remove them safely.

Download for macOS — free and open source

CleanMate Space Lens on a Mac showing the hidden Colima and Lima virtual machine disks in the home folderCleanMate Space Lens on a Mac showing the hidden Colima and Lima virtual machine disks in the home folder

Containers need a Linux kernel, so every container tool on a Mac runs a small Linux virtual machine in the background. Colima, Lima, Podman, minikube and Rancher Desktop each make their own. The VM’s disk grows as you pull images and build, often to 60 or 100 GB, and it does not shrink when you delete images inside it. Try two or three of these tools and you can have several such disks, all in hidden folders that Finder does not show.

This guide lists where each tool keeps its VMs, how to check their size and how to remove them with the tool’s own command.

Where the VMs are

Tool VM folder List the VMs Remove one
Colima ~/.colima/_lima/ (older: ~/.lima/colima*) colima list colima delete <profile>
Lima ~/.lima/<name>/ limactl list limactl delete <name>
Podman machine ~/.local/share/containers/podman/machine/ podman machine list podman machine rm <name>
minikube ~/.minikube/machines/<profile>/ minikube profile list minikube delete -p <profile>
Rancher Desktop ~/Library/Application Support/rancher-desktop/lima/ the app Troubleshooting › Factory Reset

To see what each folder takes:

du -sh ~/.colima ~/.lima ~/.local/share/containers ~/.minikube \
  ~/Library/Application\ Support/rancher-desktop 2>/dev/null

In Finder, press Shift-Command-. to show hidden folders in your home folder.

Free space but keep the VM

If you still use the tool, clean inside the VM first: docker system df shows what is there and docker system prune removes stopped containers, dangling images and build cache (add -a for every unused image). With Podman, podman system prune. The Docker guide explains each command and what it keeps.

The VM disk file will still be as big as before. To get the space back on the Mac, recreate the VM: colima delete then colima start (with --disk to set a smaller size), or limactl delete and create it again. You lose the images and volumes inside it, so push or export what you need first.

Remove the VMs you forgot

Run the list command of each tool you have installed. Any VM you do not recognise, or for a tool you no longer use, can go: stop it, then delete it with the tool’s command from the table. That removes the VM with its disk and everything inside it.

If you already removed the tool itself, its folder stays behind. Delete the folder from the table (for example rm -r ~/.colima) once you are sure nothing in it matters. Volumes and databases you ran in containers live on that VM disk, so check before you delete.

How CleanMate does it

CleanMate 1.12 on a Mac (all macOS features) lists the VMs of Colima, Lima, Podman machine, minikube and Rancher Desktop in Smart Scan › Developer Junk:

Space Lens shows these hidden folders in your home folder with their sizes, so you can see which tool takes the most. For the full desktop VMs of Parallels, VMware Fusion, UTM and VirtualBox, see Parallels, VMware Fusion and UTM virtual machines. Vagrant boxes, Multipass and the other infrastructure tools are in Virtual machines and dev infrastructure tools.

FAQ

Does deleting Docker images free space on my Mac? It frees space inside the VM, but the VM’s disk file does not shrink. Recreate the VM to give the space back to macOS.

Is it safe to delete ~/.colima or ~/.lima? Only when you no longer need any container, image or volume in those VMs. The tools’ commands (colima delete, limactl delete) are the safer way.

Does minikube delete remove everything? It removes the cluster and its VM. The download cache in ~/.minikube/cache stays; minikube delete --all --purge removes all of ~/.minikube.

Why do I have a Lima VM I never made? Colima and Rancher Desktop are built on Lima and create Lima VMs for you.

Skip the commands

Open source — star it on GitHub: CleanMate for macOS

How CleanMate decides what is safe to remove →