forked from TrueCloudLab/distribution
2b72c4d1ca
Something seems broken on azure/azure sdk side - it is currently not possible to copy a blob of type AppendBlob using `CopyFromURL`. Using the AppendBlob client via NewAppendBlobClient does not work either. According to Azure the correct way to do this is by using StartCopyFromURL. Because this is an async operation, we need to do polling ourselves. A simple backoff mechanism is used, where during each iteration, the configured delay is multiplied by the retry number. Also introduces two new config options for the Azure driver: copy_status_poll_max_retry, and copy_status_poll_delay. Signed-off-by: Flavian Missi <fmissi@redhat.com>
3.2 KiB
3.2 KiB
description | keywords | title |
---|---|---|
Explains how to use the Azure storage drivers | registry, service, driver, images, storage, azure | Microsoft Azure storage driver |
An implementation of the storagedriver.StorageDriver
interface which uses Microsoft Azure Blob Storage for object storage.
Parameters
Parameter | Required | Description |
---|---|---|
accountname |
yes | Name of the Azure Storage Account. |
accountkey |
yes | Primary or Secondary Key for the Storage Account. |
container |
yes | Name of the Azure root storage container in which all registry data is stored. Must comply the storage container name requirements. For example, if your url is https://myaccount.blob.core.windows.net/myblob use the container value of myblob . |
realm |
no | Domain name suffix for the Storage Service API endpoint. For example realm for "Azure in China" would be core.chinacloudapi.cn and realm for "Azure Government" would be core.usgovcloudapi.net . By default, this is core.windows.net . |
copy_status_poll_max_retry |
no | Max retry number for polling of copy operation status. Retries use a simple backoff algorithm where each retry number is multiplied by copy_status_poll_delay , and this number is used as the delay. Set to -1 to disable retries and abort if the copy does not complete immediately. Defaults to 5. |
copy_status_poll_delay |
no | Time to wait between retries for polling of copy operation status. This time is multiplied by N on each retry, where N is the retry number. Defaults to 100ms |
Related information
- To get information about azure-blob-storage, visit the Microsoft website.
- You can use Microsoft's Blob Service REST API to create a storage container.