-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snapshotter doesn't like paths in ko images #217
Comments
It looks like the distroless images (run through
|
If I manually force |
@mattmoor Thanks for reporting this.
Issue 1:
|
Ack issue |
From snapshotter's perspective, yes it is. Docs about snapshots: |
Yeah, I am familiar. My point is that a layer can still be lazy even if the upper layers are pulled eagerly. |
Yes, I think it's theoretically possible. |
All issues are fixed (#218, #219) and now image produced by # echo "defaultBaseImage: ghcr.io/stargz-containers/distroless-static:nonroot-esgz" > /tmp/koconf/.ko.yaml
# GGCR_EXPERIMENT_ESTARGZ=1 KO_CONFIG_PATH=/tmp/koconf/ KO_DOCKER_REPO=registry2:5000/demo ko publish --insecure-registry -B ./cmd/ko
# ctr-remote i rpull --plain-http registry2:5000/demo/ko@sha256:fa55570e6376057ce68d1226055d695ff26ff57890f90e2be90f6b05a2893129
... (omit) ...
{"level":"debug","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/1/fs","msg":"completed to prefetch","time":"2020-12-22T13:06:25.043179837Z"}
{"level":"debug","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/2/fs","msg":"completed to prefetch","time":"2020-12-22T13:06:25.315508487Z"}
{"level":"debug","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/3/fs","msg":"completed to prefetch","time":"2020-12-22T13:06:25.853265661Z"}
{"level":"debug","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/2/fs","msg":"completed to fetch all layer data in background","time":"2020-12-22T13:06:30.854436638Z"}
{"level":"debug","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/3/fs","msg":"completed to fetch all layer data in background","time":"2020-12-22T13:06:30.854708019Z"}
{"level":"debug","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/1/fs","msg":"completed to fetch all layer data in background","time":"2020-12-22T13:06:31.069902797Z"}
... (omit) ... |
I'll sync with @itsmurugappan and try to repro this today |
sure, will give it a try today |
@mattmoor @itsmurugappan Is this still an issue? |
I haven't checked the logs recently, but I do not think this is a problem anymore. |
Closing this. Feel free to reopen this whenever issues related to this are found. |
In github.com/google/ko built images, the paths we use within the tarball seem to be causing problems for the estargz snapshotter. These images run fine against a standard containerd, so it would be good to harden this snapshotter to support them:
You can produce an image with
ko
+ estargz by:go install ./cmd/ko
GGCR_EXPERIMENT_ESTARGZ=1 KO_DOCKER_REPO=docker.io/{username} ko publish -B ./cmd.foo
kubectl run foo --image={digest from above}
The text was updated successfully, but these errors were encountered: