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

Feature/configure blob caching

Open hishamanver opened this issue 4 years ago • 1 comments

This PR implements the following:

What:

  1. Enable configuration of 'proxy_cache_valid' age with CACHE_VALIDITY_PERIOD var (defaults to 60d)
  2. Enable configuration of 'proxy_cache_path' 'inactive' setting with CACHE_MAX_AGE var (defaults to 60d)
  3. Allows serving from STALE cache for non-manifest layers (eg: blob) when upstream is not available (e.g. connectivity issues / airgapped solution)

Why:

  1. We want to be able to pull images and cache them for variable periods of time (e.g. forever).
  2. We want to limit the impact of upstream outages by always allowing serving of STALE content if there are upstream issues

Comments welcome

Happy to update readme post discussion

hishamanver avatar Aug 04 '21 07:08 hishamanver

includes changes from #107

hishamanver avatar Aug 12 '21 23:08 hishamanver