Skip to content

solver: support no-cache for exec cache mounts#1092

Merged
tiborvass merged 2 commits intomoby:masterfrom
tonistiigi:cache-mount-clear
Jul 30, 2019
Merged

solver: support no-cache for exec cache mounts#1092
tiborvass merged 2 commits intomoby:masterfrom
tonistiigi:cache-mount-clear

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

fixes docker/buildx#109

No-cache doesn't really work in combination with cache mounts as it is solver level and caches instructions. But the behavior is non-obvious from the user perspective. So if no-cache is used in a run operation that uses cache mounts, all cache volumes with the matching id are released before the build even starts now.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using --no-cache still uses CACHED layers and host cache

2 participants