Skip to content

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

Closed
saiya wants to merge 1 commit intodocker:masterfrom
saiya:patch-1
Closed

Set mode=max to cache intermediate stages (docs update only)#373
saiya wants to merge 1 commit intodocker:masterfrom
saiya:patch-1

Conversation

@saiya
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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.

2 participants