mirror of https://github.com/docker/docs.git
2.3 KiB
2.3 KiB
| title | description | keywords |
|---|---|---|
| DTR cache configuration reference | Learn about the different configuration options for DTR caches. | DTR, cache |
DTR caches are based on Docker Registry, and use the same configuration file format. Learn more about the configuration options.
The DTR cache extends the Docker Registry configuration file format by
introducing a new middleware called downstream that has three configuration
options: blobttl, upstreams, and cas:
# Settings that you would include in a
# Docker Registry configuration file followed by
middleware:
registry:
- name: downstream
options:
blobttl: 24h
upstreams:
- <Externally-reachable address for upstream registry or content cache in format scheme://host:port>
cas:
- <Absolute path to next-hop upstream registry or content cache CA certificate in the container's filesystem>
Below you can find the description for each parameter, specific to DTR caches.
| Parameter | Required | Description |
|---|---|---|
blobttl
|
no |
The TTL for blobs in the cache. This field takes a positive integer and an optional suffix indicating the unit of time. If
this field is configured, "storage.delete.enabled" must be configured to true. Possible units are:
|
cas
|
no | An optional list of absolute paths to PEM-encoded CA certificates of upstream registries or content caches. |
upstreams
|
yes | A list of externally-reachable addresses for upstream registries of content caches. If more than one host is specified, it will pull from registries in round-robin order. |