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

Summary of clipboard.js usage

Table of contents (1) Introduction: (2) The ways ...

Sample code for deploying ELK using Docker-compose

environment Host IP 192.168.0.9 Docker version 19...

A simple way to restart QT application in embedded Linux (based on QT4.8 qws)

Application software generally has such business ...

Understanding the Lazy Loading Attribute Pattern in JavaScript

Traditionally, developers create properties in Ja...

How to add Lua module to Nginx

Install lua wget http://luajit.org/download/LuaJI...

Detailed explanation of MySQL binlog usage

binlog is a binary log file that records all DML ...

Example explanation of alarm function in Linux

Introduction to Linux alarm function Above code: ...

Teach you how to build a react+antd project from scratch

The previous articles were all my own learning lo...

Analysis of the use and principle of Docker Swarm cluster management

Swarm Cluster Management Introduction Docker Swar...

Summarize the common application problems of XHTML code

<br />For some time, I found that many peopl...

Docker advanced method of rapid expansion

1. Command method Run the nginx service in the cr...

Example of how to check the capacity of MySQL database table

This article introduces the command statements fo...

Open the app on the h5 side in vue (determine whether it is Android or Apple)

1. Development environment vue+vant 2. Computer s...

Detailed description of shallow copy and deep copy in js

Table of contents 1. js memory 2. Assignment 3. S...