1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-08 09:04:54 +00:00
kontain.me/cmd/estargz
2021-08-14 14:40:25 -04:00
..
deploy.sh add deploy.sh scripts 2021-08-14 14:40:25 -04:00
main.go document estargz usage 2021-07-25 14:26:31 -04:00
README.md document pull-by-digest limitations for estargz and flatten 2021-07-26 10:51:43 -04:00

estargz.kontain.me

docker pull estargz.kontain.me/[image] will pull an image (if it can), and optimize its layers for partial image pulls using the estargz format.

Only public repos are supported.

Examples

You can use this with the containerd stargz-snapshotter to pull image contents on-demand after the registry optimizes the image. Follow the Kubernetes setup guide then create a Pod that pulls an optimized image:

kind create cluster --name stargz-demo --image ghcr.io/stargz-containers/estargz-kind-node:0.7.0
kubectl run demo --image=estargz.kontain.me/nginx

The first request to pull the image will cause the image to be optimized and cached, and subsequent pulls will be faster. Manifests and layers are cached for one day and after that they'll be rebuilt the next time they're requested.

Optimized images can't be requested by the digest of the unoptimized image, because the optimized image digest won't match the original image's digest.