stargz-snapshotter
stargz-snapshotter copied to clipboard
Support layer propagation to registries for image conversion on the fly
trafficstars
Related to:
Currently, this remote snapshotter only supports reading layers. So we need to pre-process(e.g. stargzify) and push an image to a registry in advance to make it usable as "remote layers" from this snapshotter.
We can achieve on-the-fly image processing without pre-processing it by enabling to propagate layers from local to registries during runtime:
- On 1st
Prepare(), normal(not remote) layers are pulled in a very normal way. - On
Commit(), remote snapshotter processes(e.g. stargzifies) this layer as needed and pushes it to the remote store. - Since 2nd
Prepare(), we can pull this layer as a "remote layer".