This is a docker-registry backend driver for Huawei cloud services.
This driver enable you store you docker images in Huawei Cloud Storage.Go to
Note:
- You must take a Huawei Cloud Storage count and sign up a Object Storage Services.Go to Huawei cloud services to get your access_key first.
####Installation in host
git clone https://github.com/docker/docker-registry.git
python setup.py install
#####Install docker-registry-driver-huaweimos git clone https://github.com/ldpc/docker-registry-driver-huaweimos.git python setup.py install
####Install in registry container
docker pull regitry
docker run -i -t -p 5000:5000 regitry /bin/bash
git clone https://github.com/ldpc/docker-registry-driver-huaweimos.git
python setup.py install
Your must add flavors in config_sample.yml
Huawei mos flavor like:
mos: &mos
<<: *common
storage: mos
storage_path: _env:STORAGE_PATH:/registry/
mos_host: _env:MOS_HOST
mos_bucket: _env:MOS_BUCKET
mos_accessid: _env:MOS_KEY
mos_accesskey: _env:MOS_SECRECT
search_backend: _env:SEARCH_BACKEND:sqlalchemy
####Export environment variable export SETTINGS_FLAVOR=mos export STORAGE_PATH= export MOS_HOST= export MOS_BUCKET= export MOS_KEY= export MOS_SECRECT= ####Run docker-registry docker-registry
####You must have commit your changes in org registry images.
docker run
-e SETTINGS_FLAVOR=mos
-e STORAGE_PATH=/dockerregistry
-e MOS_BUCKET=docker-registry
-e MOS_HOST=
-e MOS_KEY=
-e MOS_SECRECT=
-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.