What cache will be faster, inline, min or max? #2939
Unanswered
alexander-xyz
asked this question in
Q&A
Replies: 1 comment
-
Inline cache is very similar to the registry cache - both caches are stored in the registry, the inline cache is just stored beside the main image, while the registry cache can live somewhere different. Because of the way the outputs are organized, the inline cache only supports min mode, so if you want max mode, then you'll need to use the registry cache. The cache settings that will work optimally for you depend entirely on your setup:
I'd recommend experimenting with both min and max in registry mode - it's easy to switch between them, and you can find the settings that work best for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have a big docker file with many stages and layers there. I work with git flow, so I always want to use cache most efficiently and quickly. I saw that pulling and pushing images (or cache) take a lot of time.
For now I use type=registry,mode=max. I know that it's very abstract question but, can it works faster, if I will use inline cache or min cache, instead of max cache?
Beta Was this translation helpful? Give feedback.
All reactions