'Don't use layer cache, but do use mount-cache when using docker+buildkit
When using buildkit, using the docker cli frontend, I sometimes do not want to use layer-cache, but do want to rely on the newer mount-cache type.
RUN --mount=type=cache,target=...
However running docker build --no-cache
seemingly disables both.
Is there a way to choose such that only mount-cache is used during a rebuild ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|