You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If buildkit is configured to use the stargz snapshotter and if your Dockerfile contains a base image that was compressed with estargz, the follower layers never seem to get cached. It seems that lazy pulling images never make into the buildkit cache.
I am able to reproduce this issue with this Dockerfile
FROM ghcr.io/stargz-containers/golang:1.18-esgz
RUN echo "True"
No matter how many times I build this, the layer 'RUN echo "True"' will never get cached.
I am able to replicate this on Docker Desktop on Mac by having the "Use containerd for pulling and storing images" option enabled. I can also replicate this using a remote buildkit (v0.11.6).
If buildkit is configured to use the stargz snapshotter and if your Dockerfile contains a base image that was compressed with estargz, the follower layers never seem to get cached. It seems that lazy pulling images never make into the buildkit cache.
I am able to reproduce this issue with this Dockerfile
No matter how many times I build this, the layer 'RUN echo "True"' will never get cached.
If I switch to using overlayfs snapshotter, then I do see expected behavior after the second docker build
I am able to replicate this on Docker Desktop on Mac by having the "Use containerd for pulling and storing images" option enabled. I can also replicate this using a remote buildkit (v0.11.6).
My buildkitd.toml config
The text was updated successfully, but these errors were encountered: