The content of this article is about Docker private image library and Alibaba Cloud Object Storage OSS. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Docker Private Image Library
Docker Private Image Library and Alibaba Cloud Object Storage OSS
Image management is the core of Docker , in order to meet the requirement of sharing images within enterprises or organizations, Docker officially established an open source project docker-registry on Github, which is specifically used to build self-built Docker private image libraries.
Quickly start the docker-registry that supports Alibaba Cloud Object Storage OSS
You can download it from https://github.com/docker/docker -registry Download and install docker-registry, install OSS driver through pip:
pip install docker-registry-driver-alioss
Run docker registry
docker run -e OSS_BUCKET=-e STORAGE_PATH=/docker/ -e OSS_KEY=-e OSS_SECRET=-p 5000:5000 -d chrisjin/registry:ali_oss
Configure config.yml:
```local: &local <<: *common storage: alioss storage_path: _env:STORAGE_PATH:/devregistry/ oss_bucket: _env:OSS_BUCKET[:default_value] oss_accessid: _env:OSS_KEY[:your_access_id] oss_accesskey: _env:OSS_SECRET[:your_access_key]```
Start docker-registry:
DOCKER_REGISTRY_CONFIG=[your_config_path] gunicorn -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wi:application
The above is the detailed content of About Docker private image library and Alibaba Cloud Object Storage OSS. For more information, please follow other related articles on the PHP Chinese website!