SiftMac
Is it safe to delete? · Developer tools · Updated 21 November 2026

Is it safe to delete Docker.raw?

By Mohit Nippanikar, who makes SiftMac

The short answer
On this page
  1. What it is
  2. Where it is
  3. How big it gets
  4. How to delete it safely
  5. What happens afterwards
  6. Questions

1. What it is

Containers need Linux, so Docker Desktop for Mac runs a small Linux virtual machine, and Docker’s documentation describes how it stores Linux containers and images in a single large disk image file. That file is Docker.raw. Everything Docker keeps lives inside it:

Docker.raw has a maximum size, and only takes the space it has actually used up to that maximum. Docker’s FAQ warns that some tools report the maximum instead of the real usage, which is why the file can look far bigger in Finder than the space it really takes.

2. Where it is

~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw

That’s the path in Docker’s own example. Docker Desktop shows the real location, the maximum size and the space actually used in Settings › Resources › Advanced, and that’s also where you move it, with the disk image location setting. Docker says not to move the file in Finder, because Docker Desktop can lose track of it.

3. How big it gets

It grows as you pull images, build and run containers, up to the limit set in Docker Desktop. Ask Docker what’s inside and how much it could give back (Docker Desktop must be running):

docker system df
docker system df -v

The RECLAIMABLE column is what pruning would free. To see what the file really occupies on your disk rather than its maximum, as Docker’s FAQ does:

ls -klsh ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw

4. How to delete it safely

Free space inside the file with Docker’s own commands, with Docker Desktop running:

docker system prune
docker image prune -a
docker builder prune

Volumes only go if you ask: docker system prune --volumes adds unused anonymous volumes, and named volumes are only removed by docker volume prune -a. Run docker volume ls and back up anything you need before using either.

Docker’s FAQ notes that space is only freed when images are deleted, and gives a command that makes Docker hand the freed space back to macOS straight away:

docker run --privileged --pid=host docker/desktop-reclaim-space

To stop the file growing as large again, lower the disk limit in Settings › Resources › Advanced. Docker warns that lowering it deletes the current disk image, so every container and image in it is lost: prune and back up first.

To start from empty on purpose, use Docker Desktop’s own reset, Troubleshoot › Clean up data, which destroys all containers and images and keeps your settings. Never delete Docker.raw while Docker Desktop is running.

5. What happens afterwards

Questions

Why does Finder show Docker.raw much bigger than Docker says?

Docker.raw has a maximum size, and some tools show that maximum instead of the space actually used. ls -klsh on the file, or Docker Desktop’s Settings › Resources › Advanced, shows the real usage.

Does docker system prune delete my volumes?

No. Volumes aren’t pruned unless you add --volumes, and even then only unused anonymous volumes go. Named volumes need docker volume prune -a.

Can I delete Docker.raw after uninstalling Docker Desktop?

Yes, once you’re sure you don’t need anything in its volumes: without Docker Desktop, nothing uses it. Export any volume data you want to keep before you uninstall, while Docker can still read it.

How SiftMac handles it. With Include Docker turned on in Settings, its Developer files category lists unused images, build cache and stopped containers with the sizes docker system df reports, and frees them with Docker’s own prune commands; volumes are never touched. Under System Data it shows Docker’s disk image as a whole, explained but never removed.

Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works