stargz-snapshotter icon indicating copy to clipboard operation
stargz-snapshotter copied to clipboard

3 error(s) occurred gzip: invalid header* legacy: failed to get footer gzip reader: gzip invalid header

Open yueyuep opened this issue 2 years ago • 2 comments

when use stargz snapshotter to pull private images on Kubernetes , it don't work, and just pull all layers. i use kubectl create secret regcred, then use CRI-based authentication according to https://github.com/containerd/stargz-snapshotter/blob/main/docs/overview.md test_pol.yaml: the registry.baidubce.com/stargz-work/wordpress-stargz-opt:latest is stagz image image

/etc/containerd/conf.toml image

/etc/containerd-starhz-grpc/config.toml image

systemctl status stargz-snapshotter.service

image

yueyuep avatar Apr 19 '22 07:04 yueyuep

systemctl status stargz-snapshotter.service

image

less /var/log/message image

yueyuep avatar Apr 19 '22 07:04 yueyuep

CRI-based authentication

You need to do the following as well https://github.com/containerd/stargz-snapshotter/blob/v0.11.4/docs/overview.md#cri-based-authentication

You must specify --image-service-endpoint=unix:///run/containerd-stargz-grpc/containerd-stargz-grpc.sock option to kubelet.

About https://github.com/containerd/stargz-snapshotter/issues/742#issuecomment-1102185315 , the following look like non-estargz images.

registry.baidubce.com/cce-public/pause:3.1 registry.baidubce.com/cce-public/cce-cni:v1.3.3

ktock avatar Jun 24 '22 05:06 ktock

@yueyuep Is this still an issue?

ktock avatar Sep 13 '22 16:09 ktock

Feel free to reopen this with additional info if it's still an issue.

ktock avatar Sep 21 '22 09:09 ktock