-
Assume following config: {
"storage": {
"rootDirectory": "/var/lib/registry",
"storageDriver": {
"name": "s3",
"region": "us-east-1",
"bucket": "zot"
}
}
} Why
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @lesomnus, the rootDir needs to be specified in both cases, local storage and 3s storage. For the reason above "rootDirectory" is mandatory for any zot configuration. The there is a "cacheDriver" setting which is a separate mechanism from "rootDirectory", which is used to track duplicate blobs along with some other metadata. For AWS case we have a DynamoDB implementation. In case it is not specified, all data would be stored locally under the "rootDirectory" in BoltDB . |
Beta Was this translation helpful? Give feedback.
Hi @lesomnus, the rootDir needs to be specified in both cases, local storage and 3s storage.
In the local storage case it is a local folder under which images and additional files used internally by zot are stored.
In the s3 storage case it is a local folder where blobs are stored temporarily until the image is fully pushed (for multiple reasons, such as we don't stream multipart uploads directly to S3, also we make sure all blobs in the same image are pushed and valid), after which they are copied over to S3.
Note for using zot as a pull through cache, this will also be the place where blobs are temporarily kept after zot downloads them locally, before uploading them to the final storage…