3 ms·
To make OCI images start faster, use stargz. See the image here: https://github.com/containerd/stargz-snapshotter https://github.com/containerd/stargz-snapshot
by adamgordonbell 5y ago
To make OCI images start faster, use stargz. See the image here:
https://github.com/containerd/stargz-snapshotter https://github.com/containerd/stargz-snapshotter
It's a lazy file system for images.
- yjftsjthsd-h 5y agoIt looks like that makes pulls faster, which is not quite the same thing, although it's probably a good trade for many cases. Huh, that could even work out nicely for cases where you don't end up using everything in the image - AIUI, you could just... never pull those bits if you never used them, which would be nice. Of course, you would be distributing the pull slowness through the runtime of the container.... which, again, is probably a good trade to make, but something to bear in mind. In any event, thanks for pointing that out; I'll have to play with it:)
- adamgordonbell 5y agoNo problem! Yeah, it makes things faster to start that have to be pulled first. I mean there is almost no need to worry about making images smaller if you are using stargz, because it just won't pull anything that's not needed.