I have Docker installed on my Mac OS Catalina and recently found very big file Docker.raw. It is 64 Gb. Is it really needed? And if so, why is it so big ?

  • It's not a macOS file, doesn't have anything to do with macOS. Ask whoever packaged the Docker you're using. May 19 '20 at 13:14

After having pruned the unused docker objects ( https://docs.docker.com/config/pruning/ ) in order to reduce the size of the file Docker.raw, open the Docker Desktop preferences, and then on the Disk tab:

enter image description here

You can reduced file to less than 64GB. it's telling you how much is currently used the current data. Also Resizing to a smaller size will delete the disk image; all Docker images / containers will be lost. Other settings will be preserved.

  • 2
    This is the real answer May 27 '21 at 22:31

The answer to your question is in the Docker documentation:

Disk utilization in Docker for Mac

Docker Desktop stores Linux containers and images in a single, large “disk image” file in the Mac filesystem. This is different from Docker on Linux, which usually stores containers and images in the /var/lib/docker directory.

The size of this file is big in your system because you have a lot of images and containers. You can reduce its site by pruning unused objects.


The easiest way to reduce Docker.raw file size is by setting the preferences, as Docker official page states:

Select the Docker icon and then select Preferences > Resources > Advanced.



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .