Colima, OrbStack, Lima and Docker Desktop on a Mac: same workload, disk images that shrink by themselves and one that stays at 4.2 GB

By the Zofle team · 22 November 2026 · 8 min read

Disk image sizes of Docker Desktop, OrbStack, Colima and Lima on a Mac after the same Docker workload

Every way of running Docker on a Mac puts a Linux VM behind it, and the VM's disk is one big file in your home folder. We ran the same workload on Docker Desktop, OrbStack, Colima and Lima on one Mac: pull two images (3.25 GB), write a 1 GiB file into a volume, delete it all. <code>ls</code> showed 100 to 228 GiB for each disk image; the space really used was 4 to 8 GB at the peak. The surprise was afterwards. Docker Desktop and OrbStack gave the space back by themselves; <strong>Colima's data disk stayed at 4.2 GB</strong> after everything was deleted, until we ran <code>fstrim</code> inside the VM, which took it to 116 MB.

What we measured

  • Apple M4 Mac mini, macOS 27.2.1, 22 November 2026. Docker Desktop 4.94.0 (already installed, with its normal contents), OrbStack 2.2.5 (Homebrew cask), Colima 0.10.3 and Lima 2.3.0 (Homebrew), all with the Apple Virtualization (vz) driver, 2 CPUs and 2 GiB of memory for the new VMs. OrbStack, Colima and Lima were installed for this test and removed afterwards.
  • The workload: docker pull python:3.13 and node:22 (docker system df reported 3.25 GB of images), then a volume with a 1 GiB file of random data, then deleting the file, the volume and both images. Lima has no Docker by default, so it got a 1 GiB file written and removed in the guest instead.
  • Sizes are du -k of the disk image file (allocated space), shown as MB of 1,048,576 bytes; “apparent” is the size ls -l and stat report. One run each. Docker Desktop's other images and its running container were left alone: we deleted only what the test created, with no prune.

Where each disk image is, and how big it claims to be

ToolDisk image fileApparent size (ls)Allocated (du), idle
Docker Desktop 4.94.0~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw228.3 GiB (245,106,737,152 bytes)3,849.0 MB, with 4 images and 1 container
OrbStack 2.2.5~/Library/Group Containers/HUAQ24HBR6.dev.orbstack/data/data.img.raw228.3 GiB (245,107,802,624 bytes)8.1 MB, empty
Colima 0.10.3, data disk~/.colima/_lima/_disks/<profile>/datadisk (the profile folder is named colima-<profile>)100 GiB, from --disk 100 (the default)7.4 MB, empty
Colima 0.10.3, boot disk~/.colima/_lima/colima-<profile>/disk20 GiB1,402.1 MB
Lima 2.3.0~/.lima/<name>/disk100 GiB (the default)3,467.1 MB after the first start (Ubuntu 26.10 and the nerdctl bundle)

Docker Desktop and OrbStack both showed 228.3 GiB, close to the size of this Mac's data volume (228 GiB), so the number tracks the Mac's disk, not a limit you set. Colima and Lima use the size you ask for at creation. None of these numbers is what the VM occupies. Our <a href="https://zofle.com/articles/docker-desktop-mac-docker-raw-system-df-build-cache-disk-measured">Docker Desktop article</a> explains the same gap for <code>Docker.raw</code>; <a href="https://zofle.com/articles/utm-virtual-machines-mac-sparse-disks-compaction">UTM</a> behaves the same way.

The same workload, four disks

MB allocatedStartAfter pulling 2 imagesAfter a 1 GiB volume fileAfter deleting images, volumeLater
Docker Desktop3,849.06,798.97,994.03,848.7 (within 10 s)no change in the next 3 minutes
OrbStack8.13,050.74,097.73,076.0 (10 s), 3,076.3 (30 s)6.9 about 2 minutes later
Colima data disk7.43,043.04,244.44,262.6fstrim -av in the VM: 115.9

Docker Desktop and OrbStack punch holes in the image when the guest frees blocks, so the file shrinks without you doing anything; OrbStack's took a couple of minutes for the images, Docker Desktop's was done in ten seconds. Docker's own FAQ describes this for <code>Docker.raw</code>: space on the host is reclaimed within a few seconds. Colima's data disk did not do it. Inside the VM <code>docker system df</code> said 0 B in use while the file on the Mac held 4.2 GB. After <code>colima ssh -- sudo fstrim -av</code> reported 4.7 GiB trimmed on the data disk, the file dropped to 115.9 MB. Colima's 20 GiB boot disk did not move (1,421.3 MB before and 1,421.2 MB after) even though <code>fstrim</code> reported 227 MiB trimmed on <code>/</code>.

Lima, with a 1 GiB file in the guest, behaved like the first two: the disk went from 3,467.1 to 4,491.2 MB, back to 3,467.2 MB right after <code>rm</code>, and 3,437.9 MB after <code>fstrim -av</code> (which reported 91.8 GiB trimmed on <code>/</code>). We did not check why Colima's separate data disk differs from Lima's root disk; this is what we saw with these versions.

Space outside the disk image

ToolFolderSize and what it is
Colima~/Library/Caches/colima320.4 MB: the downloaded VM image, kept for the next colima start
Lima~/Library/Caches/lima3,816.8 MB: the Ubuntu image (976.7 MB), the same image converted to raw (2,662,980 KB, 2,600.6 MB) and the nerdctl bundle (270.5 MB)
Lima instance~/.lima/<name>/cidata.iso277.2 MB in every instance, beside the disk
Apps and tools/Applications, HomebrewDocker.app 2,197.1 MB; OrbStack.app 702.5 MB; Homebrew lima 113 MB and colima 11.2 MB

The Lima cache is the one people miss: it is bigger than the VM that uses it, and it comes back as a folder in <code>~/Library/Caches</code>. The earlier measurement of that folder on this Mac, with no VM set up, was 2,750.6 MB (<a href="https://zofle.com/articles/caches-ten-biggest-folders-mac-library-caches-what-rebuilds">the ten biggest folders in ~/Library/Caches</a>).

Shrinking and resetting each one

ToolWhat we did and saw
Docker DesktopNothing needed for freed space (above). To lower the ceiling use Settings, Resources, Advanced, Disk image size; Docker's documentation and forum threads say that reducing it deletes the current image and with it every container, image and volume. Not run here: this Mac's Docker Desktop is in use.
OrbStackDelete images and volumes; the file shrinks by itself (our test: 3,076 MB to 6.9 MB). brew uninstall --cask --zap orbstack removed the app, ~/.orbstack and the group container; OrbStack had switched the Docker CLI's current context to orbstack, which we set back with docker context use desktop-linux and docker context rm orbstack.
Colimadocker system prune, then colima ssh -p <profile> -- sudo fstrim -av to hand blocks back (4,262.6 to 115.9 MB). colima stop changed nothing (1,593,968 to 1,594,276 KB for ~/.colima). colima delete removed the VM but left the data disk: 118,792 KB stayed, and it would hold any images still in it; colima delete --data took ~/.colima to 20 KB. colima prune removed the downloaded-image cache.
Limalimactl shell <name> -- sudo fstrim -av if the disk ever stays large. limactl delete <name> removed the instance folder (3,804,652 KB), leaving ~/.lima at 12 KB; limactl prune removed the 3.7 GB cache.

What to do on your Mac

  • Look at the real size, not the one Finder or ls shows: du -sh ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw, du -sh ~/.colima ~/.lima ~/Library/Caches/colima ~/Library/Caches/lima and du -sh "$HOME/Library/Group Containers/HUAQ24HBR6.dev.orbstack". Paths you do not have are simply not there.
  • On Colima, run docker system prune and then fstrim in the VM before blaming the image; if you are abandoning a profile, use colima delete --data, not just colima delete.
  • On Lima, remember the cache: limactl prune after you delete the last instance that needs the image. It downloads again at 1 to 2 MB/s on our connection, so do not prune just before you need it.
  • Do not copy or back up these disk images with tools that do not understand sparse files: a copy can be the apparent 100 to 228 GiB. Exclude them from Time Machine or file-level backups and back up volumes with docker itself.

Zofle lists these folders by allocated size, so a 228 GiB-looking <code>Docker.raw</code> shows as the 4 GB it is, next to Lima and Colima caches and the other developer folders from <a href="https://zofle.com/articles/developer-caches-gradle-node-modules-that-fill-your-disk">our developer caches article</a>. It does not run <code>fstrim</code> or delete a VM's contents for you; do that with the tool's own commands.

Zofle shows VM disk images, container caches and other developer leftovers by size on disk and moves your picks to the Trash with Undo.

Download Zofle for Mac

Sources and method

  • Run on 22 November 2026 on one Apple M4 Mac mini, macOS 27.2.1: Docker Desktop 4.94.0 (Docker 29.8.2, 2 CPUs, 3 GiB, the existing install), OrbStack 2.2.5 (brew install --cask orbstack), Colima 0.10.3 and Lima 2.3.0 (brew install colima lima, vz driver, 2 CPUs, 2 GiB, 100 GiB disk, Lima's default Ubuntu template). The three installed tools were uninstalled and their folders deleted afterwards.
  • Sizes are du -k and stat -f %z on the image files. One run each, one network (1 to 2 MB/s), so no timings are claimed beyond the shrink delays we watched. The shrink behaviour is what we observed with these versions.
  • Not tested, taken from documentation: Docker's FAQ on reclaiming space (docs.docker.com/desktop/troubleshoot-and-support/faqs/macfaqs) and the OrbStack FAQ, which calls its data.img a sparse file that shrinks as you delete data (docs.orbstack.dev/faq; it names a path under ~/.orbstack/data, while 2.2.5 on this Mac used the group container above). The Lima disk-resize command is in the Lima reference (lima-vm.io); we did not run it.

Zofle Pro news

People signing up now will get Zofle Pro, with more features, for free when we launch it.

One email when it's ready. No spam, ever.