Skip to content

The cache is deleted by docker registry at mirror proxy mode #2736

Closed

Description

@mlb-1

The cache is deleted when i set maintenance.uploadpurging.enabled=false. Why? And How do you keep the cache valid for a very long time?

config.yml:

version: 0.1
log:
  fields:
    service: registry
storage:
  cache:
    blobdescriptor: inmemory
  filesystem:
    rootdirectory: /var/lib/registry
  maintenance:
    uploadpurging:
      enabled: false
http:
  addr: :30000
  headers:
    X-Content-Type-Options: [nosniff]
health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3
proxy:
  remoteurl: http://192.168.23.94:8092
  username: admin
  password: xxxxxx

Activity

  1. manishtomar commented on Oct 17, 2018

    @manishtomar
    Contributor

    The cache is deleted after 7 days which is hard-coded in the code as of now and should be independent of maintenance.uploadpurging config: https://github.com/docker/distribution/blob/06fa77aa11a3913096efcb9b5bd25db8ef55a939/registry/proxy/proxymanifeststore.go#L15

    We would gladly accept PR to configure that cache duration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions