About Docker private image library and Alibaba Cloud Object Storage OSS

坏嘻嘻
Release: 2018-09-29 16:14:31
Original
2871 people have browsed it

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
Copy after login

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
Copy after login

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]```
Copy after login

Start docker-registry:

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


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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template