You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+32-7Lines changed: 32 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The fastest way to get running:
25
25
That will use the
26
26
[official image from the Docker index](https://registry.hub.docker.com/_/registry/).
27
27
28
-
Here is another example that will launch a container on port 5000, and store images in an Amazon S3 bucket:
28
+
Here is another example that will launch a container on port 5000, and store images in an Amazon S3 bucket:
29
29
```
30
30
docker run \
31
31
-e SETTINGS_FLAVOR=s3 \
@@ -62,6 +62,7 @@ In the `config_sample.yml` file, you'll see several sample flavors:
62
62
1.`common`: used by all other flavors as base settings
63
63
1.`local`: stores data on the local filesystem
64
64
1.`s3`: stores data in an AWS S3 bucket
65
+
1.`ceph-s3`: stores data in a Ceph cluster via a Ceph Object Gateway, using the S3 API
65
66
1.`dev`: basic configuration using the `local` flavor
66
67
1.`test`: used by unit tests
67
68
1.`prod`: production configuration (basically a synonym for the `s3` flavor)
@@ -156,9 +157,9 @@ When using the `config_sample.yml`, you can pass all options through as environm
156
157
1. `boto_host`/`boto_port`: If you are using `storage: s3` the
157
158
[standard boto config file locations](http://docs.pythonboto.org/en/latest/boto_config_tut.html#details)
158
159
(`/etc/boto.cfg, ~/.boto`) will be used. If you are using a
159
-
*non*-Amazon S3-compliant object store, in one of the boto config files'
160
+
*non*-Amazon S3-compliant object store (such as Ceph), in one of the boto config files'
160
161
`[Credentials]` section, set `boto_host`, `boto_port` as appropriate for the
161
-
service you are using.
162
+
service you are using. Alternatively, set `boto_host` and `boto_port` in the config file.
162
163
1. `bugsnag`: The bugsnag API key (note that if you don't use the official docker container, you need to install the registry with bugsnag enabled: `pip install docker-registry[bugsnag]`)
163
164
164
165
### Authentication options
@@ -184,7 +185,7 @@ When using the `config_sample.yml`, you can pass all options through as environm
184
185
##### Generating keys with `openssl`
185
186
186
187
You will need to install the python-rsa package (`pip install rsa`) in addition to using `openssl`.
187
-
Generating the public key using openssl will lead to producing a key in a format not supported by
188
+
Generating the public key using openssl will lead to producing a key in a format not supported by
188
189
the RSA library the registry is using.
189
190
190
191
Generate private key:
@@ -204,7 +205,7 @@ can configure the backend with a configuration like:
204
205
205
206
The `search_backend` setting selects the search backend to use. If
206
207
`search_backend` is empty, no index is built, and the search endpoint always
207
-
returns empty results.
208
+
returns empty results.
208
209
209
210
1. `search_backend`: The name of the search backend engine to use.
210
211
Currently supported backends are:
@@ -352,7 +353,11 @@ AWS Simple Storage Service options
352
353
server-side by S3 and will be stored in an encrypted form while at rest
353
354
in S3.
354
355
1. `s3_secure`: boolean, true for HTTPS to S3
355
-
1. `boto_bucket`: string, the bucket name
356
+
1. `boto_bucket`: string, the bucket name for *non*-Amazon S3-compliant object store
357
+
1. `boto_host`: string, host for *non*-Amazon S3-compliant object store
358
+
1. `boto_port`: for *non*-Amazon S3-compliant object store
359
+
1. `boto_debug`: for *non*-Amazon S3-compliant object store
360
+
1. `boto_calling_format`: for *non*-Amazon S3-compliant object store
356
361
1. `storage_path`: string, the sub "folder" where image data will be stored.
357
362
358
363
Example:
@@ -391,6 +396,26 @@ docker run \
391
396
NOTE: The container will try to allocate the port 5000. If the port
392
397
is already taken, find out which container is already using it by running `docker ps`
393
398
399
+
### Other *non*-Amazon S3-compliant object store (e.g. Ceph and Riak CS)
400
+
401
+
```
402
+
docker run \
403
+
-e SETTINGS_FLAVOR=s3 \
404
+
-e AWS_BUCKET=mybucket \
405
+
-e STORAGE_PATH=/registry \
406
+
-e AWS_KEY=myawskey \
407
+
-e AWS_SECRET=myawssecret \
408
+
-e SEARCH_BACKEND=sqlalchemy \
409
+
-p 5000:5000 \
410
+
-p AWS_HOST=myowns3.com \
411
+
-p AWS_SECURE=false \
412
+
-p AWS_ENCRYPT=false \
413
+
-p AWS_PORT=80 \
414
+
-p AWS_DEBUG=true \
415
+
-p AWS_CALLING_FORMAT=OrdinaryCallingFormat \
416
+
registry
417
+
```
418
+
394
419
### Advanced: install the registry on an existing server
395
420
396
421
#### On Ubuntu
@@ -454,7 +479,7 @@ behind a nginx server which supports chunked transfer-encoding (nginx >= 1.3.9).
454
479
455
480
#### nginx
456
481
457
-
[Here is an nginx configuration file example.](https://github.com/docker/docker-registry/blob/master/contrib/nginx/nginx.conf), which applies to versions < 1.3.9 which are compiled with the [HttpChunkinModule](http://wiki.nginx.org/HttpChunkinModule).
482
+
[Here is an nginx configuration file example.](https://github.com/docker/docker-registry/blob/master/contrib/nginx/nginx.conf), which applies to versions < 1.3.9 which are compiled with the [HttpChunkinModule](http://wiki.nginx.org/HttpChunkinModule).
458
483
459
484
[This is another example nginx configuration file](https://github.com/docker/docker-registry/blob/master/contrib/nginx/nginx_1-3-9.conf) that applies to versions of nginx greater than 1.3.9 that have support for the chunked_transfer_encoding directive.
0 commit comments