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

add option to change cache behavior (CACHE_GREEDY_MODE) #126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

saces
Copy link
Contributor

@saces saces commented Jan 12, 2022

In default mode a layer exist only once in the cache, and regardless
which repository it is initially from, each repository get a hit on
this layer now.
Pitfall: You can not push images that reuse layers from a different
registry (ALLOW_PUSH=true).
Setting this option to 'false' adds the host to the cache key to solve this.

Default is true to not change default behavior.
WARNING: Changing this setting invalidates your cache!

In default mode a layer exist only once in the cache, and regardless
which repository it is initially from, each repository get a hit on
this layer now.
Pitfall: You can not push images that reuse layers from a different
registry (`ALLOW_PUSH=true`).
Setting this option to 'false' adds the host to the cache key to solve this.

Default is `true` to not change default behavior.
WARNING: Changing this setting invalidates your cache!
@saces
Copy link
Contributor Author

saces commented Jan 12, 2022

With this one and some feedback from others the todo item "Developer Office" may can get a checkmark. :)

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.

1 participant