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
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
When building with the remote driver, the --cache-from type=registry option appears to be ignored, as long as BUILDX_EXPERIMENTAL=1.
Expected behaviour
The remote cache should be used to skip building any layers that have not been modified.
Actual behaviour
Each layer is rebuilt rather than reading from remote cache.
Strangely, the --cache-to option seems to be honored, as the build layers are written to the remote registry.
I did some debugging on both buildx and buildkit. When running with BUILDX_EXPERIMENTAL=true there are never any cacheImports received by the loadResult function whereas with BUILDX_EXPERIMENTAL=false the cacheImports are populated.
I'm not exactly sure where the difference is, but I traced the code-paths down to BUILDX_EXPERIMENTAL=true using the NewResultHandle branch here and BUILDX_EXPERIMENTAL=false using the plain c.Build branch.
I wasn't able to find any concrete difference between the two branches though
Contributing guidelines
I've found a bug and checked that ...
Description
When building with the remote driver, the
--cache-from type=registry
option appears to be ignored, as long as BUILDX_EXPERIMENTAL=1.Expected behaviour
The remote cache should be used to skip building any layers that have not been modified.
Actual behaviour
Each layer is rebuilt rather than reading from remote cache.
Strangely, the --cache-to option seems to be honored, as the build layers are written to the remote registry.
Buildx version
github.com/docker/buildx v0.22.0 18ccba0
Docker info
Builders list
Configuration
Dockerfile
Script to reproduce the issue:
build.sh
Reproduction steps:
cache_repo
in build.shbuild.sh
without any arguments - first time will populate the registry cache, subsequent builds will use the cachebuild.sh experimental
- Observe that the registry cache is not usedBuild logs
Additional info
No response
The text was updated successfully, but these errors were encountered: