You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Folder com.apple.container has mismatched bytes when comparing size in Finder vs command lineΒ #119
This is not an issue with container itself, but just with how finder vs du report size by default (and finder even gives a hint as to the actual size on disk in your output as well). The reason one of them shows as 11TB is because of how we chose to store container images. Every container image we download we place the contents of inside of a 500+GiB sparse file that we use as a block device and attach to the VM. On disk these are typically just the size of the contents of the image, but to some programs that might not check for the real size taken on disk and instead only the apparent size, the files can look quite large :). For example, below is the output with -A for du which informs the program to show you the apparent size, followed up by du's default behavior which displays the actual size taken on disk, which is much much more reasonable:
β du -h -A ~/Library/Application\Support/com.apple.container/snapshots/008448246686fe28544e36ba89e7bc7fbe6dad8a2ccdef576875c74298c46348/snapshot
512G /Users/dcantah/Library/Application Support/com.apple.container/snapshots/008448246686fe28544e36ba89e7bc7fbe6dad8a2ccdef576875c74298c46348/snapshot
β du -h ~/Library/Application\ Support/com.apple.container/snapshots/008448246686fe28544e36ba89e7bc7fbe6dad8a2ccdef576875c74298c46348/snapshot
75M /Users/dcantah/Library/Application Support/com.apple.container/snapshots/008448246686fe28544e36ba89e7bc7fbe6dad8a2ccdef576875c74298c46348/snapshot
@dcantah sorry to dig up an old thread here, but what's the "proper" way to clean up those sparse images? My ~/Application Support/com.apple.container/containers/buildkit/rootfs.ext4 is a 550GB sparse file, but it seems to have over 100GB of actual data in it too, and its contents are completely opaque to me. Is there a good way to manage that 100+GB of data inside the ext4 without downloading the buildkit thing from scratch every time?
Activity
roblabs commentedon Jun 10, 2025
I have no way to test on macOS 26 Beta. Could someone verify the issue on macOS 26 Beta to compare to my results?
I am aware of the stated macOS 15 limitations:
dcantah commentedon Jun 12, 2025
This is not an issue with container itself, but just with how finder vs
dureport size by default (and finder even gives a hint as to the actual size on disk in your output as well). The reason one of them shows as 11TB is because of how we chose to store container images. Every container image we download we place the contents of inside of a 500+GiB sparse file that we use as a block device and attach to the VM. On disk these are typically just the size of the contents of the image, but to some programs that might not check for the real size taken on disk and instead only the apparent size, the files can look quite large :). For example, below is the output with -A forduwhich informs the program to show you the apparent size, followed up bydu's default behavior which displays the actual size taken on disk, which is much much more reasonable:copumpkin commentedon Jan 20, 2026
@dcantah sorry to dig up an old thread here, but what's the "proper" way to clean up those sparse images? My
~/Application Support/com.apple.container/containers/buildkit/rootfs.ext4is a 550GB sparse file, but it seems to have over 100GB of actual data in it too, and its contents are completely opaque to me. Is there a good way to manage that 100+GB of data inside the ext4 without downloading the buildkit thing from scratch every time?