This is a docker-registry backend driver for Qiniu Cloud Storage.
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
# 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
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