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
[Bug]: Apple container taking too much space under ~/Library/Application Support/com.apple.container for snapshots #784
How did I verify that this folder is used by apple containers ---
Looked at the log files and json files and snapshot-info file under the path, all indiicate that this folder is used by apple container.
com.apple.container/content/blobs/ - do not take much space, looks like these folders container the image layers. They take up space as required by the image. Problem is not seen here.
Issue:
/Users/......./Library/Application Support/com.apple.container/snapshots take copies of rootfs.ext4, instead of compressing the same. I did not take snapshots with CLI.
the snapshot-info file, does not speficy the path or name of the original folder, which is getting snapshotted.
rootfs.ext4 under /Users/......./Library/Application Support/com.apple.container/containers/8d9612b6-f655-4a18-8a3c-9de6dd0da6f2/rootfs.ext4, takes about 500 GB. My guess is the snapshots are of this folder.
Let me know if you would need any further information.
Current behavior
apple containers snapshots and rootfs.ext4 files take up too much space, even for simple containers.
rootfs.ext4 file takes up too much space. And this file is getting snapshot'ed, and this is causing reduction of free space in hard disk.
Expected behavior
Snapshots should be compressed versions of config, and meta data. There is no need to have image information in the snapshot. I do not know how to peek at the rootfs.ext4 file to see what it contains.
Environment
- OS: macOS 26.0.1 (25A362)
- Xcode: Version 16.4 (16F6)
- Container: container CLI version 0.4.1 (build: release, commit: 4ac18b5)
@binuud As @mdempsky stated (thanks!), they're sparse files so take up much less actual space on disk than Finder leads on. If you believe there's still an issue please reopen!
They might be sparse files, but for Time Machine that doesn't seem to matter. Time machine now fails every time with "not enough diskspace" when I try to backup my home folder to an external drive.
the snapshots seems to hang around even after there are no actual containers. Is there a way/tool to clean them up?
Activity
mdempsky commentedon Oct 20, 2025
They're large files, but they're sparse, so the actual storage footprint is much smaller:
dcantah commentedon Oct 20, 2025
@binuud As @mdempsky stated (thanks!), they're sparse files so take up much less actual space on disk than Finder leads on. If you believe there's still an issue please reopen!
minusf commentedon Jun 29, 2026