Docker.raw on Mac: why it’s huge and how to shrink it safely

One big virtual disk holding all your Docker containers and images.

Short answer

Don’t delete Docker.raw; it’s the single virtual disk holding all your Docker containers and images. Shrink it from inside Docker instead: run docker system prune (add -a to also remove unused images), or use Docker Desktop’s Troubleshoot and disk settings. The file is sparse, so check its allocated size, not its apparent size.

Skip the manual steps. Tidy Mac finds this and every other hidden space hog on your Mac in under a minute.

The five questions

What is this?

One big virtual disk holding all your Docker containers and images.

Why is it big?

Images and stopped containers pile up as you work.

Is it safe to remove?

Not the file itself; that would erase everything inside Docker.
The right way: Run docker system prune, or use Docker Desktop's cleanup options.

Our verdict: Leave alone. Removing this directly can break something. There’s a right way to shrink it.

How big it gets: 10–100 GB on developer Macs. The apparent size can be larger than the space really used.

Where it lives: ~/Library/Containers/com.docker.docker

Do it yourself

Open Terminal and type: docker system prune

docker system prune
~/Library/Containers/com.docker.docker. The disk file is sparse, so Tidy Mac measures allocated size, not apparent size.

With Tidy Mac: Docker

Tidy Mac shows the real (allocated) size of the Docker and OrbStack disks in Clean as Kept: it never removes them. Shrink them with Docker’s own commands above. Whatever Tidy Mac removes goes to the Trash first, and History lets you undo it.

See your own docker in seconds

See every part of your storage explained, and clear junk to the Trash with Undo. $9.99 $29 once, 2 Macs.

Frequently asked questions

Is it safe to delete docker on a Mac?

Not the file itself; that would erase everything inside Docker. Run docker system prune, or use Docker Desktop's cleanup options.

Why are my docker so big?

Images and stopped containers pile up as you work.

How do I clean docker manually?

Open Terminal and type: docker system prune

Keep reading