I have an MacBook Air (10.14.6) and the folder ~/Library/Containers/com.docker.docker/
contains 64 GB of data!!
How to clean up this folder?
I have an MacBook Air (10.14.6) and the folder ~/Library/Containers/com.docker.docker/
contains 64 GB of data!!
How to clean up this folder?
I doubt the folder is 64 GB. That’s a very round number, the sort one might select as the disk size in Docker Desktop preferences.
Given 64 GB is set as the maximum size of the disk, Finder will show the size as this. Get Info and check the size on disk instead.
To get a breakdown and accurate sizes, run docker system df
.
Docker can cope with files being deleted in this folder as long as it’s not running, but data will be lost. However the more standard way to free space is to docker system prune
. See --help
for usage.
For more information about how Docker Desktop stores data on disk, see https://docs.docker.com/desktop/mac/space/.
docker system df
yields: TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 2 2 403.4MB 0B (0%) Containers 2 2 63B 0B (0%) Local Volumes 1 1 41.98MB 0B (0%) Build Cache 0 0 0B 0B
– Alex
Jan 01 '22 at 10:38
Finder
has a bug. It shows the folder to have 64GB, but df -d 1 -m
shows it to have less than 3GB. Looks like I cannot trust Finder
...
– Alex
Jan 01 '22 at 10:41