Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the functions of Registry and issue bugfix

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what are the functions of Registry and issue bugfix". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the functions of Registry and issue bugfix.

Docker Registry 2.1.1

1) catalog api, which supports all content in the user's list Registry.

2) soft deletion of manifest files and layer files.

3) pull images from cache are supported as proxies for Dockerhub.

4) Storage driver support: add Aliyun OSS, Ceph, Openstack Swift

Docker Registry 2.2.0

1) Storage driver support: add Google Cloud Storage Driver.

2) read-only mode: Registry only supports read requests. Required for maintenance or some risky administrator operations.

3) support reading configuration files of environment variables.

4) notification endpoint health status check is supported. Allows administrators to temporarily block an instance of Registry by placing files.

5) support the warehouse administrator to improve security by setting the return header.

Docker Registry 2.2.1

6) Storage Driver supports correct handling of empty directories

7) reduce the roundtrips when downloading layer

8) performance optimization of catalog api

Docker Registry 2.3.0

1) support image manifest file v2 version and schema 2 format. The description file in this format has two main purposes: one is that the image content that supports Docker engine is addressable. The second is to allow images of multiple architectures to exist. That is, by describing the platform-related image information in a richer manifest file. Https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md

2) when mount across image layers supports uploading images, public blobs files that already exist will not be uploaded repeatedly. Instead, a "shallow copy" is used to create an associated file that already has a mirror blobs. This function reduces the actual transmitted data and speeds up the distribution of the image when uploading the image.

Docker Registry 2.4.0

1) the new AWS S3 Storage Driver. The storage driver based on AWS S3 sdk is implemented, which enhances the performance and stability.

2) garbage collection. The garbage collection mechanism removes mirror layers that are not associated with Manifests.

Read-only mode

If the Read-only mode of Registry is turned on, image upload cannot be performed. This mode is used in the garbage collection phase and temporarily forbids users from uploading mirrors to the back-end file system. This mode needs to be turned on before running garbage collection. After recycling, the mode needs to be turned off. The process restarts Registry twice.

Garbage collection process

Unlike Registryv2.2.1, the API provided by Registry through Manifests and Blobs does not really delete files in the back-end file system, and files actually stored in Ceph will not be deleted until garbage collection. There are two stages:

1. "Mark" stage. The process scans all the manifests files in the repository and generates a digest with 'mark set', containing all the mirror layer files (blobs). These associated blobs will not be deleted.

2. "Sweep" stage. The process scans all blobs that are not associated in the mark set and deletes them. Note: when gc, you need to make sure that registry is in read-only mode. Because if you are in gc, the uploaded image may be deleted by mistake. Officials say this mode of gc is only temporarily available and will then allow garbage collection to run automatically in the background without the need for manual operation.

Tips

1. Remove rados storage driver.

2. V1 signature is invalid. By adopting manifest files in schema2 format and deprecating signatures, it helps to improve the generation and return of a separate libtrust signature when downloading images.

Docker Registry 2.5.0

1) the access control middleware of mirror layer blob is added.

2) add mirror layers from external sources.

3) Delete the signature store.

At this point, I believe you have a deeper understanding of "what are the functions of Registry and issue bugfix?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report