Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 541f217

Browse files
committed
Merge pull request #718 from haosdent/add-oss-driver-doc
Add aliyun oss driver document.
2 parents 362b578 + 1e05c1e commit 541f217

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

DRIVERS.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
* [docker-registry-driver-qiniu](https://github.com/zhangpeihao/docker-registry-driver-qiniu)
77
* [docker-registry-driver-hdfs](https://github.com/lyda/docker-registry-driver-hdfs)
88
* [docker-registry-driver-sinastorage](https://github.com/kerwin/docker-registry-driver-sinastorage)
9+
* [docker-registry-driver-oss](https://github.com/chris-jin/docker-registry-driver-alioss.git)
910

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The fastest way to get running:
4545

4646
That will use the [official image from the Docker hub](https://registry.hub.docker.com/_/registry/).
4747

48-
Here is a slightly more complex example that launches a registry on port 5000, using an Amazon S3 bucket to store images with a custom path, and enables the search endpoint:
48+
Here is a slightly more complex example that launches a registry on port 5000, using an Amazon S3 bucket to store images with a custom path, and enables the search endpoint:
4949

5050
```
5151
docker run \
@@ -286,6 +286,7 @@ To use and install one of these alternate storages:
286286
* [swift](https://github.com/bacongobbler/docker-registry-driver-swift)
287287
* [gcs](https://github.com/dmp42/docker-registry-driver-gcs)
288288
* [glance](https://github.com/dmp42/docker-registry-driver-glance)
289+
* [oss](https://github.com/chris-jin/docker-registry-driver-alioss.git)
289290

290291
### storage file
291292

@@ -351,7 +352,7 @@ sudo docker run -p 5000:5000 -v /home/me/myfolder:/registry-conf -e DOCKER_REGIS
351352

352353
# Advanced use
353354

354-
For more features and advanced options, have a look at the [advanced features documentation](ADVANCED.md)
355+
For more features and advanced options, have a look at the [advanced features documentation](ADVANCED.md)
355356

356357
# Drivers
357358

config/config_sample.yml

+13
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,19 @@ elliptics:
184184
elliptics_logfile: _env:ELLIPTICS_LOGFILE:/dev/stderr
185185
elliptics_addr_family: _env:ELLIPTICS_ADDR_FAMILY:2
186186

187+
# This flavor stores the images in Aliyun OSS
188+
# See:
189+
# https://i.aliyun.com/access_key/
190+
# for details on access and secret keys.
191+
oss: &oss
192+
<<: *common
193+
storage: oss
194+
storage_path: _env:STORAGE_PATH:/registry/
195+
oss_host: _env:OSS_HOST
196+
oss_bucket: _env:OSS_BUCKET
197+
oss_accessid: _env:OSS_KEY
198+
oss_accesskey: _env:OSS_SECRET
199+
187200

188201

189202
# This is the default configuration when no flavor is specified

0 commit comments

Comments
 (0)