Join the waitlistJoin
← All cleanup guides
Docker Desktop

Docker Desktop disk image: is it safe to delete?

Docker Desktop keeps every image, container, volume and build cache inside one virtual disk file in this folder.

Where it lives
  • ~/Library/Containers/com.docker.docker/Data/vms
Risk
Review. Safe in many cases, but only you know if you still need it. Never preselected.
Comes back on its own
No
If you delete it
Deleting images in Docker does not shrink this file immediately, because the space returns only after Docker releases it; deleting the file itself erases every container and volume.
What SPACE256 does
Shows what it is and how big it is. It does not delete it.

37.99 GBDocker's disk image on the Mac this site's city was scanned from

What it is

Docker Desktop on a Mac runs containers inside a small Linux virtual machine. Everything Docker stores, images, containers, volumes and build cache, lives in one virtual disk file in ~/Library/Containers/com.docker.docker/Data/vms.

Why it grows

Pulling images, building, and keeping stopped containers and old volumes all fill the virtual disk. Its size limit is set in Docker Desktop’s settings, and the file grows toward it as you work.

When to clear it

From Docker itself: remove unused images, containers and build cache with docker system prune, or with the tools in Docker Desktop. The file then shrinks as Docker releases the space.

When to keep it

Keep it whenever any volume holds data you care about. SPACE256 shows the file and explains it, but never removes it.

Questions

I deleted images in Docker, so why is the file still big?

Docker Desktop keeps everything in one virtual disk file. Space freed inside it returns to macOS only after Docker releases it, so the file can stay large for a while.

What happens if the file is deleted?

Every image, container, volume and build cache disappears with it, including data in volumes such as local databases. That is why SPACE256 never deletes it.

How do I see what's using the space?

Run `docker system df` for a summary of images, containers, volumes and build cache, and `docker system prune` to remove what nothing uses (add `--volumes` only if you're sure about volume data).

Get SPACE256 at launch