Layer Caching Configuration

To speed up Anchore Enterprise can be configure to cache image layers to eliminate the need to download the same layer for many different images.

Configuring Layer Caching

Layer cache should be enabled in order to tell the analyzer service to cache image layers.

To enable layer caching, adjust the layer_cache_max_gigabytes parameter in the analyzer section of the Anchore Enterprise Helm values file, for example:

analyzer:
    enabled: True
    require_auth: True
    cycle_timer_seconds: 1
    analyzer_driver: 'nodocker'
    endpoint_hostname: '${ANCHORE_HOST_ID}'
    listen: '0.0.0.0'
    port: 8084
    layer_cache_max_gigabytes: 4

In the above, the layer cache is set to 4 gigabytes.

  • The minimum size for the cache is 1 gigabyte.
  • The cache users a least recently used (LRU) policy.
  • The cache files will be stored in the anchore_layercache directory of the /tmp_dir volume, as noted above.

Note For further specifics, consult the Anchore Enterprise Helm chart here.

Last modified June 10, 2025