A brief analysis of Docker private image library and Alibaba Cloud object storage OSS

A brief analysis of Docker private image library and Alibaba Cloud object storage OSS

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 needs of sharing images within an enterprise or organization, Docker officially established an open source project docker-registry on Github, which is specifically used to build a private Docker image library.

Quickly start the docker-registry that supports Alibaba Cloud Object Storage OSS

You can download and install docker-registry from https://github.com/docker/docker-registry and install the OSS driver via 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 all the content and steps of introducing Docker private image library and Alibaba Cloud Object Storage OSS. Thank you for your support to 123WORDPRESS.COM.

You may also be interested in:
  • Alibaba Cloud deployment steps for Docker private image repository

<<:  Example of how to create a database name with special characters in MySQL

>>:  Summary of Vue's monitoring of keyboard events

Recommend

Detailed explanation of the principle and usage of MySQL stored procedures

This article uses examples to explain the princip...

Installation of CUDA10.0 and problems in Ubuntu

The correspondence between tensorflow version and...

Detailed installation and use tutorial of mysql 8.0.15 under windows

This article shares with you the detailed install...

MySQL 8.0.20 compressed version installation tutorial with pictures and text

1. MySQL download address; http://ftp.ntu.edu.tw/...

Briefly describe the four transaction isolation levels of MySql

Isolation Level: Isolation is more complicated th...

How to permanently change the host name in Linux

If you want to change your host name, you can fol...

JS implements simple example code to control video playback speed

introduction I discovered a problem before: somet...

Summary of Mysql high performance optimization skills

Database Command Specification All database objec...

Highly recommended! Setup syntax sugar in Vue 3.2

Table of contents Previous 1. What is setup synta...

A brief discussion on event-driven development in JS and Nodejs

Table of contents Event-driven and publish-subscr...

Apache Bench stress testing tool implementation principle and usage analysis

1: Throughput (Requests per second) A quantitativ...

A brief discussion on how to choose and combine div and table

Page layout has always been my concern since I st...