Skip to content
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

Set mode=max to cache intermediate stages (docs update only) #373

Closed
wants to merge 1 commit into from

Conversation

saiya
Copy link

@saiya saiya commented May 28, 2021

Add mode=max option in the cache.md documentation.

Background: buildx caches layers only in the final stage by default.

To speedup multi-stage Dockerfile build, better to set mode=max in CI: https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-to

@saiya saiya requested a review from crazy-max as a code owner May 28, 2021 05:56
buildx caches layer only in the final stage by default.
To speedup multi-stage Dockerfile build, better to set `mode=max`: https://docs.docker.com/engine/reference/commandline/buildx_build/#cache-to

Signed-off-by: saiya <saiya.v6@gmail.com>
@crazy-max
Copy link
Member

@saiya Fixed through #406 (fyi inline cache does not support max mode)

@crazy-max crazy-max closed this Jul 29, 2021
@saiya
Copy link
Author

saiya commented Jul 30, 2021

Wonderful! Thank you.

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.

None yet

2 participants