Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker registry qiniu storage driver

This is a docker-registry backend driver for Qiniu Cloud Storage.

Usage (recommendation)

Go to Qiniu Cloud Storage to get your access_key first.

Run docker-registry service by docker container

docker run --rm \
  -e SETTINGS_FLAVOR=qiniustorage \
  -e QINIU_BUCKET=YOUR_BUCKET \
  -e QINIU_ACCESSKEY=YOUR_ACCESSKEY \
  -e QINIU_SECRETKEY=YOUR_SECRETKEY \
  -e QINIU_DOMAIN=YOUR_BUCKET_DOMAIN \
  -p 5000:5000 \
  --name registry \
  zhangpeihao/docker-registry-qiniu

Usage via pip

# Install pip
apt-get -y install python-pip

# Install deps for backports.lzma (python2 requires it)
apt-get -y install python-dev liblzma-dev libevent1-dev

# Install docker-registry
pip install docker-registry

# finally
pip install qiniu docker-registry-driver-qiniu

export DOCKER_REGISTRY_CONFIG=/usr/local/lib/python2.7/dist-packages/docker-registry-driver-qiniu/config/config_qiniu.yml
export SETTINGS_FLAVOR=qiniustorage

export QINIU_BUCKET=YOUR_BUCKET
export QINIU_ACCESSKEY=YOUR_ACCESSKEY
export QINIU_SECRETKEY=YOUR_SECRETKEY
export QINIU_DOMAIN=YOUR_BUCKET_DOMAIN
docker-registry

Contributing

In order to verify what you did is ok, just run pip install tox; tox. This will run the tests
provided by docker-registry-core.

For more information, plz check docker-registry-readme

Docker Pull Command
Owner
zhangpeihao

Comments (0)