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

Pure CSS to achieve click to expand and read the full text function

Note When developing an article display list inte...

MySQL 8.0.22 download, installation and configuration method graphic tutorial

Download and install MySQL 8.0.22 for your refere...

Understanding Vuex in one article

Table of contents Overview Vuex four major object...

border-radius is a method for adding rounded borders to elements

border-radius:10px; /* All corners are rounded wi...

SQL function to merge a field together

Recently, I need to query all the fields in a rel...

Solution to Linux CentOS 6.5 ifconfig cannot query IP

Recently, some friends said that after installing...

Steps to install MySQL 5.7.10 on Windows server 2008 r2

Install using the MSI installation package Downlo...

Summary of Button's four Click response methods

Button is used quite a lot. Here I have sorted ou...

HTML Tutorial: Collection of commonly used HTML tags (6)

These introduced HTML tags do not necessarily ful...

Tutorial on setting up scheduled tasks to backup the Oracle database under Linux

1. Check the character set of the database The ch...

Detailed explanation of overlay network in Docker

Translated from Docker official documentation, or...

How to use JSX to implement Carousel components (front-end componentization)

Before we use JSX to build a component system, le...

Summary of common problems and application skills in MySQL

Preface In the daily development or maintenance o...