Skip to main content
docker-registry-driver-oss
=============================

This is a docker-registry backend driver based on the Open Storage Service from aliyun.com.

Usage
=========

Assuming you have a working docker-registry and oss api setup(you can get it here: http://aliyunecs.oss-cn-hangzhou.aliyuncs.com/OSS_Python_API_20140509.zip).

get source code and run:
python setup.py install

Edit your configuration so that storage reads ali oss.

Config
=========
You should add all the following configurations to your main docker-registry configuration to further configure it, which by default is config/config.yml.

oss configrations:
* storage: specify the storage to use, should be alwasy oss
* storage_path: specify the path prefix in the oss bucket
* oss_host: specify the endpoint host of oss
* oss_bucket: specify the bucket where you want to store these images for your registry
* oss_accessid: the access id for the oss bucket, which you get from aliyun.com
* oss_accesskey: the access key for the oss bucket, which you get from aliyun.com

example <you can copy this example into your config.yml, and modify it accordingly>:

oss: &oss
<<: *common
storage: oss
storage_path: _env:STORAGE_PATH:/registry/
oss_host: _env:OSS_HOST[:your_oss_endpoint_host]
oss_bucket: _env:OSS_BUCKET[:default_value]
oss_accessid: _env:OSS_KEY[:your_access_id]
oss_accesskey: _env:OSS_SECRET[:your_access_key]

Options
=========
When you run docker-registry, you can use the following two methods to configure the storage:

* if you run docker-registry on your local host, export these configurations if you want to modify the default value in the configured in the config.yml:
export SETTINGS_FLAVOR=oss
export STORAGE_PATH=<the prefix of the storage path>
export OSS_HOST=<your oss endpoint host>
export OSS_BUCKET=<your oss bucket>
export OSS_KEY=<your access id>
export OSS_SECRET=<your access key>

* if you run docker-registry on your docker container, remmeber to specify these settings as cmd args:
docker run \
-e SETTINGS_FLAVOR=oss \
-e STORAGE_PATH=/registry/ \
-e OSS_BUCKET=docker-registry \
-e OSS_HOST=<your oss endpoint host> \
-e OSS_KEY=<your access id> \
-e OSS_SECRET=<your access key> \
-e SEARCH_BACKEND=sqlalchemy \
-p 5000:5000 \
registry

License
=========
This is licensed under the Apache license. Most of the code here comes from docker-registry, under an Apache license as well.

Metadata

Release files for docker-registry-driver-oss 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-registry-driver-oss 0.1.3
File Size Uploaded Provenance Actions
docker-registry-driver-oss-0.1.3.tar.gz 10.1 kB Without provenance Details for docker-registry-driver-oss-0.1.3.tar.gz

Release files / docker-registry-driver-oss-0.1.3.tar.gz

Download URL docker-registry-driver-oss-0.1.3.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab143625838913635eef118cd9fe961a76ed7807c011c25191a88959c795b573
BLAKE2b-256 checksum
How to use checksums
08ea0cbdb07be25bb5ec9d914ba60aba80c25238f462163d8d1da6e42a659929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for docker-registry-driver-oss 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page