Skip to content

Stop leaking disk space when unpacking images with zstd layers - #931

Merged
dkovba merged 3 commits into
apple:mainfrom
dkovba:stream-zstd
Sep 18, 2026
Merged

dkovba merged 3 commits into
apple:mainfrom
dkovba:stream-zstd

Conversation

@dkovba

@dkovba dkovba commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Fixes issues in the image unpack:

  • Uncompressed zstd layers were written to temp folders on the disk, with no size limit.
  • The temp folders were left behind when decompressing a later layer failed or was cancelled.

zstd layers now stream through decompression, so no copy is written to disk.

Thank you, @iabdullah215, for bringing the issues to our attention.

@dkovba
dkovba merged commit b352534 into apple:main Sep 18, 2026
7 checks passed
@dkovba
dkovba deleted the stream-zstd branch September 18, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants