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

HTML marquee tag usage examples

This tag is not part of HTML3.2 and only supports ...

MySQL statement summary

Table of contents 1. Select database USE 2. Displ...

Implementation of CSS3 button border animation

First look at the effect: html <a href="#...

How to implement logic reuse with Vue3 composition API

Composition API implements logic reuse steps: Ext...

The difference between html form submission action and url jump to actiond

The action of the form is different from the URL j...

Detailed introduction to MySQL database index

Table of contents Mind Map Simple understanding E...

CSS pseudo-element::marker detailed explanation

This article will introduce an interesting pseudo...

Analysis of the configuration process of installing mariadb based on docker

1. Installation Search the mariadb version to be ...

How to verify whether MySQL is installed successfully

After MySQL is installed, you can verify whether ...

Detailed explanation of setting resource cache in nginx

I have always wanted to learn about caching. Afte...

How to view files in Docker image

How to view files in a docker image 1. If it is a...

Solutions to browser interpretation differences in size and width and height in CSS

Let’s look at an example first Copy code The code ...