Skip to content
86% off$349 $48.86code BF2026

Guides

Docker.raw shows 494 GB: sparse file, real size on Mac

Docker.raw can show 494 GB in Finder while using far less. Check real size with ls -ls and du, then reclaim space with docker system prune.

GuideUpdated 5 min read

On this page

You looked at ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw, saw 494 GB, and want to know whether Docker really took half a terabyte of your disk. Usually it did not, but it can still be big, so check before you act.

Why Docker.raw shows 494 GB

A sparse file stores only the parts that have been written. The unwritten rest is a "hole" that costs nothing on disk but still counts toward the file's length. Docker Desktop creates its virtual disk with a ceiling (the disk limit in its settings), so the length sits at that ceiling while the allocated part grows only as you pull images, build and create volumes.

Two consequences:

  • The apparent size does not tell you how much space you would get back.
  • The allocated size can still be large. A heavy Docker user can genuinely fill a disk with images, build cache and volumes.

People in the threads that sparked this question (an April 2026 post on r/mac and r/webdev) reported the same thing: the poster lowered the disk limit, which deleted images, while replies pointed out that Finder shows the apparent size and the file "might not even consume a single GB."

Check the real size

These commands only read file information and change nothing.

bash
ls -lh ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
du -h ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
ls -ls ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
  • ls -lh prints the apparent size, the big number.
  • du -h prints the space allocated on disk, which is what your storage actually pays for. It counts in units of 1024, so it reads slightly lower than Finder's decimal GB.
  • In ls -ls, the first column is blocks actually used (512-byte units by default), next to the apparent length.

In Finder

  1. Press ⇧⌘G (Go to Folder) and paste the folder path without the file name.
  2. Select Docker.raw and press ⌘I (Get Info).
  3. Read the first line of the size field. Replies in the threads suggested this, and it shows both figures.

See what Docker is holding

Docker Desktop must be running.

bash
docker system df

It lists images, containers, volumes and build cache with sizes and how much is reclaimable. It only reads data. If the total here is small but du -h is large, the disk image has grown and not been shrunk back; if both are large, there is real Docker data to clear.

Reclaim space with docker system prune

This permanently deletes Docker data. It does not use the Trash and cannot be undone.

bash
docker system prune

By default it removes stopped containers, unused networks, dangling images and build cache, and asks you to confirm. Stricter variants: -a removes all unused images, and --volumes includes volumes. Volumes can hold database data, so read Docker's pruning guide in its official documentation before using that flag. To undo a prune, pull or rebuild the images you need.

After pruning, run du -h on Docker.raw again. Whether and how quickly Docker Desktop hands freed space back to macOS is up to Docker Desktop, so the number may not drop immediately.

Lower Docker Desktop's disk limit

The original poster fixed the 494 GB figure this way and reported that it deleted their images. Treat it as destructive and do it last.

  1. Open Docker Desktop's Settings.
  2. Go to Resources.
  3. Find the disk image size control. Its exact label and position vary by Docker Desktop version, so search the settings if you don't see it.
  4. Set a smaller limit and apply it.

Prune first, and copy anything important out of volumes before you start.

Which method to use

MethodWhat it tells you or doesChanges anything?
ls -lhApparent size (the 494 GB)No
ls -ls, du -h or Get InfoSpace allocated on diskNo
docker system dfWhat is inside Docker, and what is reclaimableNo
docker system pruneRemoves unused Docker dataYes, permanent
Lower the disk limitResizes the disk imageYes, reported to delete images

See it in Gigabroom

If Terminal is all you need, du -h is enough. If you would rather read it in an app, Gigabroom measures allocated sizes in decimal units to match Finder, not apparent length.

  1. Open Gigabroom and choose Developer Junk (⌘7).
  2. Find Docker Disk Image in the Containers & VMs section.
  3. Use Copy the command to copy docker system prune, or Open Docker Pruning Guide to open Docker's documentation.

Gigabroom is part of MacSuite, and you can try it free for 7 days. The rest of its developer cleanup is covered in cleaning developer junk.

Checklist before you prune

  • du -h or Get Info confirmed the allocated size is actually large.
  • docker system df shows reclaimable space.
  • Nothing you need lives only in a volume or an unused image.
  • You are fine re-pulling or rebuilding what gets removed.

If nothing works

  • Cannot connect to the Docker daemon: Docker Desktop is not running. Start it, wait until it reports running, and retry.
  • Allocated size didn't drop after pruning: if docker system df shows space reclaimed but du -h stays high, Docker Desktop has not returned it to macOS. Lowering the disk limit is the remaining option, with the data-loss warning above.
  • docker system df is small but the disk is still full: Docker.raw may not be the cause. See Mac storage not going down after deleting files and how to free up space on a Mac.

If you still need help, contact Docker's support channel and include your Docker Desktop version, macOS version, and the output of the commands above.

text
Docker Desktop version: (your version)
macOS version: (your version)
Docker.raw apparent size (ls -lh): 494 GB
Allocated size (du -h): (your value)
docker system df output: (paste it)
Steps tried: docker system prune, (anything else)
Question: why is the allocated size not shrinking after pruning?

Common questions

Is Docker really using 494 GB?

Usually not. The 494 GB is the sparse file's apparent size. Check du -h or Get Info for the real figure, then docker system df for what is inside.

Is it safe to delete Docker.raw?

Don't trash it by hand while you use Docker Desktop. It holds your images, containers and volumes. Prune inside Docker instead. Gigabroom refuses to trash it for the same reason.

Should I switch to OrbStack?

Replies in the original threads suggested it. We don't have verified details on how OrbStack stores its disk, so we can't compare it. This page covers Docker Desktop only.

Where else does developer data pile up?

Xcode, simulators and package caches. See free up disk space on a Mac for developers and clear Xcode cache and DerivedData.

Every app.
One purchase.