containerd / stargz-snapshotter

Fast container image distribution plugin with lazy pulling
https://github.com/containerd/containerd/issues/3731
Apache License 2.0
1.12k stars 114 forks source link

[Additional Layer Store] Use TOCDigest as ID of each layer #1673

Closed ktock closed 2 months ago

ktock commented 3 months ago

Needs: https://github.com/containers/storage/pull/1924 and https://github.com/containers/image/pull/2416

This commit changes stargz-store to use TOCDigest as the layer specifier. For example, the extracted view of a layer diff contents is provided in the following path:

 <mountpoint>/base64(imageref)/<TOCDigest>/diff

When an access happens to a layer, stargz store searches the layer that has the TOC matching to the specified TOCDigest. If it fails to get the layer, stargz-store returns EIO.