A Brief analysis of Docker private image Library and OSS Aliyun Object storage

  • 2020-11-25 07:49:43
  • OfStack

Docker private mirror library

Docker private image library with Alicloud object store OSS

Mirror management is the core of Docker. In order to meet the needs of sharing mirrors within enterprises or organizations, Docker officially established an open source project on Github, docker-ES13en, which is specially used for the private mirror library of Docker.

Quick start support for Ali cloud object storage ES18en-ES19en

You can from https: / / github com/docker/docker - download and install docker - registry registry, through pip installation OSS driver:


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

Configuration 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 the docker - registry:


DOCKER_REGISTRY_CONFIG= [ your_config_path ] 
gunicorn -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wi:application

This is the introduction of Docker private image library and aliyun object storage OSS all the content and steps, thank you for your support for this site.


Related articles: