github.com/npaton/distribution@v2.3.1-rc.0+incompatible/docs/storage-drivers/oss.md (about) 1 <!--[metadata]> 2 +++ 3 title = "Aliyun OSS storage driver" 4 description = "Explains how to use the Aliyun OSS storage driver" 5 keywords = ["registry, service, driver, images, storage, OSS, aliyun"] 6 +++ 7 <![end-metadata]--> 8 9 # Aliyun OSS storage driver 10 11 An implementation of the `storagedriver.StorageDriver` interface which uses [Aliyun OSS](http://www.aliyun.com/product/oss) for object storage. 12 13 ## Parameters 14 15 <table> 16 <tr> 17 <th>Parameter</th> 18 <th>Required</th> 19 <th>Description</th> 20 </tr> 21 <tr> 22 <td> 23 <code>accesskeyid</code> 24 </td> 25 <td> 26 yes 27 </td> 28 <td> 29 Your access key ID. 30 </td> 31 </tr> 32 <tr> 33 <td> 34 <code>accesskeysecret</code> 35 </td> 36 <td> 37 yes 38 </td> 39 <td> 40 Your access key secret. 41 </td> 42 </tr> 43 <tr> 44 <td> 45 <code>region</code> 46 </td> 47 <td> 48 yes 49 </td> 50 <td> The name of the OSS region in which you would like to store objects (for example `oss-cn-beijing`). For a list of regions, you can look at <http://docs.aliyun.com/#/oss/product-documentation/domain-region> 51 </td> 52 </tr> 53 <tr> 54 <td> 55 <code>endpoint</code> 56 </td> 57 <td> 58 no 59 </td> 60 <td> 61 An endpoint which defaults to `<bucket>.<region>.aliyuncs.com` or `<bucket>.<region>-internal.aliyuncs.com` (when `internal=true`). You can change the default endpoint by changing this value. 62 </td> 63 </tr> 64 <tr> 65 <td> 66 <code>internal</code> 67 </td> 68 <td> 69 no 70 </td> 71 <td> An internal endpoint or the public endpoint for OSS access. The default is false. For a list of regions, you can look at <http://docs.aliyun.com/#/oss/product-documentation/domain-region> 72 </td> 73 </tr> 74 <tr> 75 <td> 76 <code>bucket</code> 77 </td> 78 <td> 79 yes 80 </td> 81 <td> The name of your OSS bucket where you wish to store objects (needs to already be created prior to driver initialization). 82 </td> 83 </tr> 84 <tr> 85 <td> 86 <code>encrypt</code> 87 </td> 88 <td> 89 no 90 </td> 91 <td> Specifies whether you would like your data encrypted on the server side. Defaults to false if not specified. 92 </td> 93 </tr> 94 <tr> 95 <td> 96 <code>secure</code> 97 </td> 98 <td> 99 no 100 </td> 101 <td> Specifies whether to transfer data to the bucket over ssl or not. If you omit this value, `true` is used. 102 </td> 103 </tr> 104 <tr> 105 <td> 106 <code>chunksize</code> 107 </td> 108 <td> 109 no 110 </td> 111 <td> The default part size for multipart uploads (performed by WriteStream) to OSS. The default is 10 MB. Keep in mind that the minimum part size for OSS is 5MB. You might experience better performance for larger chunk sizes depending on the speed of your connection to OSS. 112 </td> 113 </tr> 114 <tr> 115 <td> 116 <code>rootdirectory</code> 117 </td> 118 <td> 119 no 120 </td> 121 <td> The root directory tree in which to store all registry files. Defaults to an empty string (bucket root). 122 </td> 123 </tr> 124 </table>