Docker.raw on Mac: what it is and how to shrink it

MACMAN FOLDER · 2026-11-16

Shrink inside the app

What it is

Why it grows

Docker Desktop runs inside a Linux virtual machine and keeps every image, container and volume in a single virtual disk file called Docker.raw. Each time you pull or build an image, that file fills up.

Deleting containers or images inside Docker does not always shrink the file you see on the Mac right away. Unused images and build cache pile up, and on the Mac side it still looks like one large file.

That is why deleting the file in Finder and cleaning up inside Docker give very different results. The first loses everything inside it at once.

Before you delete

How to check its size

In Finder, choose Go > Go to Folder (Shift-Command-G), enter ~/Library/Containers/com.docker.docker, then use Get Info (Command-I) to see the size.

In Terminal, run du -sh ~/Library/Containers/com.docker.docker to see the size.

Docker.raw sits deep inside this folder. Docker Desktop also shows the disk image's location and the space it actually uses under Settings > Resources > Advanced.

The free MacMan Scan diagnosis lists this folder with its size and grade. The scan is read-only.

How to shrink it safely

  1. Do not delete the Docker.raw file in Finder. Every image, container and volume inside it would be gone.
  2. With Docker Desktop running, enter docker image prune -a && docker builder prune in Terminal. Each part asks you to confirm before it deletes anything.
  3. -a deletes every image that no container uses. Any image you need later has to be pulled or built again.
  4. Leave volumes alone. They can hold real data such as databases.
  5. If the size still does not drop as much as you expect, check in Docker Desktop which images and volumes remain before you delete anything else.

How MacMan Scan handles this folder

MacMan Scan never offers this whole folder as one checkbox. With a license and Docker Desktop running, you can expand the row and pick individual images, containers, volumes and build cache. Those deletions go through Docker right away and cannot be undone.

Related folders

Get the free diagnosis

The scan is read-only. Diagnosis alone deletes nothing.