docker-registry-proxy icon indicating copy to clipboard operation
docker-registry-proxy copied to clipboard

add option to change cache behavior (CACHE_GREEDY_MODE)

Open saces opened this issue 3 years ago • 1 comments

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 avatar Jan 12 '22 00:01 saces

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

saces avatar Jan 12 '22 01:01 saces