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

Solve the group by query problem after upgrading Mysql to 5.7

Find the problem After upgrading MySQL to MySQL 5...

mysqldump parameters you may not know

In the previous article, it was mentioned that th...

Solve the problem of inconsistency between mysql time and system time in docker

Recently, when I installed MySQL in Docker, I fou...

Basic tutorial on controlling Turtlebot3 mobile robot with ROS

Chinese Tutorial https://www.ncnynl.com/category/...

Automatic backup of MySQL database using shell script

Automatic backup of MySQL database using shell sc...

MySQL joint table query basic operation left-join common pitfalls

Overview For small and medium-sized projects, joi...

docker-maven-plugin packages the image and uploads it to a private warehouse

Table of contents 1. Introduction to docker-maven...

Understand the principles and applications of JSONP in one article

Table of contents What is JSONP JSONP Principle J...

JS ES new features: Introduction to extension operators

1. Spread Operator The spread operator is three d...

Detailed explanation of jquery tag selector application example

This article example shares the specific code of ...

Several things to note when making a web page

--Homepage backup 1.txt text 2. Scan the image 3. ...

MySQL 8.0.22 installation and configuration graphic tutorial

MySQL8.0.22 installation and configuration (super...