JP2023532138A - Image distribution method, electronic device and storage medium - Google Patents

Image distribution method, electronic device and storage medium Download PDF

Info

Publication number
JP2023532138A
JP2023532138A JP2022581580A JP2022581580A JP2023532138A JP 2023532138 A JP2023532138 A JP 2023532138A JP 2022581580 A JP2022581580 A JP 2022581580A JP 2022581580 A JP2022581580 A JP 2022581580A JP 2023532138 A JP2023532138 A JP 2023532138A
Authority
JP
Japan
Prior art keywords
image
image file
storage location
repository
layer data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022581580A
Other languages
Japanese (ja)
Inventor
王党華
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of JP2023532138A publication Critical patent/JP2023532138A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

本願の実施形態は、通信技術の分野に関し、イメージ配布方法、サーバ及び記憶媒体を開示する。イメージファイルの配布要求を取得し、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定し、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する技術的手段は、イメージ配布が必要な場合、イメージファイルの各層データの格納場所を特定してからイメージ配布を行うことにより、イメージをローカルにプルしてからターゲットイメージレポジトリにプッシュする必要がなくなる。【選択図】図1Embodiments of the present application disclose an image distribution method, a server and a storage medium in the field of communication technology. Obtaining a distribution request for an image file, identifying a first storage location within a source image repository for each layer data of the image file, and targeting each layer data of the image file from the source image repository according to the first storage location. The technical means of distributing to an image repository is to identify where each layer of data in the image file is stored before distributing the image, if image distribution is required, so that the image is pulled locally and then pushed to the target image repository. no longer need to. [Selection drawing] Fig. 1

Description

本願の実施形態は、通信の分野に関し、特にイメージ配布方法、サーバ及び記憶媒体に関する。 TECHNICAL FIELD Embodiments of the present application relate to the field of communications, and more particularly to image distribution methods, servers and storage media.

IT技術の日進月歩の発展に伴い、便利、簡単、低コスト、高安全性といった特徴を有するため、仮想化技術はコンピュータ分野でますます広く応用されるようになってきている。その中でも、イメージレポジトリは、仮想化技術における重要なネットワーク要素であり、ユーザのさまざまなイメージファイル(Image)を格納するために使用される。イメージはイメージレポジトリ内に層(Layers)に分けて格納され、異なる参照関係(link)によって異なるイメージが識別される。つまり、イメージは1つのファイルとしてではなく、一連のLayersとlinksとしてイメージレポジトリに格納される。これは、各層データを共有し、記憶容量を削減する特別なファイル構造である。 With the rapid development of IT technology, the virtualization technology is becoming more and more widely applied in the computer field because of its features such as convenience, simplicity, low cost, and high security. Among them, the image repository is an important network element in virtualization technology, and is used to store various image files (Image) of users. Images are stored in layers in the image repository, with different links identifying different images. That is, images are stored in the image repository as a series of Layers and links, rather than as a single file. This is a special file structure that shares each layer data and reduces storage capacity.

イメージの使用過程において、多くの場合、ユーザは複数のイメージレポジトリ間でイメージ配布を行う必要がある。イメージ配布は通常、オープンソースのアプリケーションコンテナエンジンであるdockerシステムに基づいて行われる。すなわち、まずはソースイメージレポジトリから1つのイメージファイルをプルし、イメージにタグを付けてから、新しいタグに対応するターゲットイメージレポジトリにイメージファイルをプッシュする。この方法でイメージ配布を行うには、イメージファイル全体をローカルにプルする必要があるため、ネットワーク帯域幅の消費が大きく、配布の効率が低い。また、イメージファイルをローカルに格納するには、多くの場合、一定の時間が必要とされるため、複数の配布タスクが同一のイメージファイルに対応している場合、イメージファイルの競合が発生しやすくなる。 In the course of using images, users often need to distribute images among multiple image repositories. Image distribution is typically based on the docker system, an open source application container engine. That is, first pull one image file from the source image repository, tag the image, and then push the image file to the target image repository corresponding to the new tag. This method of image distribution requires a local pull of the entire image file, which consumes more network bandwidth and makes distribution less efficient. Also, in many cases, it takes a certain amount of time to store an image file locally, so if multiple distribution tasks correspond to the same image file, image file conflicts are likely to occur.

本願の実施形態の目的は、イメージ配布方法、サーバ及び記憶媒体を提供することであり、新しいイメージ配布方法により、イメージ配布プロセスの効率と安定性を向上させる。 An object of embodiments of the present application is to provide an image distribution method, a server and a storage medium, and improve the efficiency and stability of the image distribution process with a new image distribution method.

上述した技術的課題を解決するために、本願の実施形態はイメージ配布方法を提供し、前記イメージ配布方法は、イメージファイルの配布要求を取得することと、イメージファイルのソースイメージレポジトリから、イメージファイルの格納場所を特定することと、イメージファイルの格納場所に基づいて、イメージファイルをターゲットイメージレポジトリに配布することと、を含む。 To solve the above technical problem, an embodiment of the present application provides an image distribution method, which includes obtaining a distribution request for an image file, identifying a storage location of the image file from a source image repository of the image file, and distributing the image file to a target image repository according to the storage location of the image file.

本願の実施形態はサーバさらに提供する。前記サーバは、少なくとも1つのプロセッサと、少なくとも1つのプロセッサと通信可能に接続されたメモリとを含み、メモリには少なくとも1つのプロセッサにより実行できる指令が記憶されており、指令が少なくとも1つのプロセッサにより実行されることで、少なくとも1つのプロセッサにより上記したイメージ配布方法を実行できる。 Embodiments of the present application further provide a server. The server includes at least one processor and a memory communicatively connected to the at least one processor, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the image distribution method can be performed by the at least one processor.

本願の実施形態はコンピュータ可読記憶媒体をさらに提供し、前記コンピュータ可読記憶媒体はコンピュータプログラムを記憶しており、コンピュータプログラムがプロセッサにより実行された場合、上記に記載のイメージ配布方法を実現する。 Embodiments of the present application further provide a computer-readable storage medium, said computer-readable storage medium storing a computer program, which, when executed by a processor, implements the image distribution method described above.

一つ又は複数の実施形態をそれに対応する添付図面中の画像によって例示的に示し、これらの例示的な説明は、実施形態に対する限定を構成するわけではない。
本願の第1実施形態におけるイメージ配布方法のフローチャートである。 本願の第2実施形態におけるイメージ配布方法のフローチャートである。 本願の第3実施形態におけるイメージ配布方法のフローチャートである。 本願の第4実施形態におけるイメージ配布装置の構成模式図である。 本願の第4実施形態におけるイメージ配布装置の構成模式図である。 本願の第5実施形態におけるサーバの構成模式図である。
One or more embodiments are illustratively illustrated by corresponding images in the accompanying drawings, and these illustrative descriptions do not constitute limitations on the embodiments.
4 is a flowchart of an image distribution method according to the first embodiment of the present application; FIG. 4 is a flow chart of an image distribution method according to the second embodiment of the present application; FIG. FIG. 9 is a flow chart of an image distribution method according to the third embodiment of the present application; FIG. FIG. 12 is a schematic diagram of the configuration of an image distribution apparatus according to a fourth embodiment of the present application; FIG. 12 is a schematic diagram of the configuration of an image distribution apparatus according to a fourth embodiment of the present application; It is a structural schematic diagram of the server in 5th Embodiment of this application.

本願実施例の目的、技術案及び利点をより明らかにするために、以下では、添付図面を組み合わせて本願の各実施形態を詳しく説明する。しかしながら、当業者であれば、本願の各実施形態において、読み手に本願をよりよく理解してもらうために多くの技術的詳細が提示されていることを理解することができる。しかし、これらの技術的詳細及び以下の各実施形態に基づく様々な変更及び修正がなくとも、本願の保護を求める技術案を実現することができる。以下の各実施例の区分は、説明の便宜のためになされており、本願の具体的な実施形態にいかなる限定を構成すべきではなく、各実施形態は、矛盾しない限り、組み合わせたり互いに引用したりすることができる。 In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in combination with the accompanying drawings. However, those skilled in the art can appreciate that, in each embodiment of the present application, many technical details are presented in order to help the reader to better understand the present application. However, the technical solution for which this application seeks protection may be implemented without various changes and modifications based on these technical details and each of the embodiments below. The division of each example below is made for convenience of explanation and should not constitute any limitation to the specific embodiments of the present application, and each embodiment can be combined and referenced to each other unless inconsistent.

本発明の第1実施形態は、イメージ配布方法に関し、この方法によれば、イメージファイルの配布要求を取得し、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定し、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する技術的手段は、イメージ配布が必要な場合、イメージファイルの各層データの格納場所を特定してからイメージ配布を行うことにより、イメージをローカルにプルしてからターゲットイメージレポジトリにプッシュする必要がなくなり、イメージ配布の効率が著しく向上するとともに、イメージファイルをローカルにプルする際に発生する可能性のあるファイル競合が回避され、イメージ配布プロセスの安定性が向上する。 A first embodiment of the present invention relates to an image distribution method. According to this method, a technical means of obtaining a distribution request for an image file, identifying a first storage location of each layer data of the image file in the source image repository, and distributing each layer data of the image file from the source image repository to the target image repository according to the first storage location, when image distribution is required, the image is locally pulled before the target by identifying the storage location of each layer data of the image file and then distributing the image. Eliminating the need to push to an image repository significantly improves the efficiency of image distribution, and avoids file conflicts that can occur when pulling image files locally, improving the stability of the image distribution process.

以下では、本実施形態のイメージ配布方法の実現の詳細について説明するが、以下の内容は、理解を容易にするために提供される実現の詳細に過ぎず、本案を実施するための必須条件ではない。 Although the implementation details of the image distribution method of the present embodiment are described below, the following are merely implementation details provided for ease of understanding and are not a prerequisite for implementing the present proposal.

本実施形態の具体的な流れは図1に示すように、具体的には、以下のステップを含む。 The specific flow of this embodiment specifically includes the following steps, as shown in FIG.

ステップ101において、イメージファイルの配布要求を取得する。 At step 101, an image file distribution request is obtained.

具体的には、本実施形態でいうイメージファイルとは、配布要求で要求されるイメージファイルであり、すなわち、配布対象のイメージファイルである。ユーザが複数のイメージレポジトリ間でイメージを配布する必要がある場合、DClient(Image Distribute Client,イメージ配布システムクライアント側)によりイメージファイルの配布要求を、IDServer(Image Distribute Server,イメージ配布システムサーバ側)に送信する。利用可能なIDClientには、Web(ウェブページクライアント)、App(モバイル端末用アプリケーション)、コマンドラインバイナリプログラム、コマンドラインスクリプトなどが含まれる。本実施形態における実行主体はIDServerであり、IDClientと同じ仮想ノード上または同じ仮想マシンノードにデプロイされて、イメージレポジトリを管理および制御する機能を果たすことができる。ここで、イメージ配布要求には、少なくとも、配布対象のイメージファイルのファイルの名前または複数の配布対象のイメージファイルの名前を含むイメージリストと、ソースイメージレポジトリのアドレスおよびターゲットイメージレポジトリのアドレスとが保持される。 Specifically, the image file referred to in this embodiment is the image file requested by the distribution request, that is, the image file to be distributed. When a user needs to distribute an image among a plurality of image repositories, DClient (Image Distribute Client, image distribution system client side) sends an image file distribution request to IDServer (Image Distribution Server, image distribution system server side). Available IDClient includes Web (web page client), App (mobile terminal application), command line binary program, command line script, and the like. The execution entity in this embodiment is the IDServer, which can be deployed on the same virtual node or in the same virtual machine node as the IDClient to perform the function of managing and controlling the image repository. Here, the image distribution request holds at least an image list containing the name of the image file to be distributed or the names of a plurality of image files to be distributed, the address of the source image repository and the address of the target image repository.

ステップ102において、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定する。 At step 102, a first storage location in the source image repository for each layer data of the image file is identified.

具体的には、IDServerからイメージファイルの配布要求を受信した後、ソースイメージレポジトリ内でイメージ特定を行い、すなわち、配布要求内のイメージファイル名およびソースイメージレポジトリのアドレスを解析するとともに、イメージレポジトリ内におけるイメージの特別な格納構造に関連して、ソースイメージレポジトリ内における配布対象のイメージファイルの各層データの格納場所、すなわち第1の格納場所をイメージレポジトリから特定する。その中で、イメージファイルの各層データ、すなわち、基礎となるデータは、イメージレポジトリ内におけるイメージファイルの特別な格納構造によって決まり、基礎となるデータには、repositories、blobs、layers、manifestsなどが含まれるが、これらに限定されない。このうち、repositoriesは、テナント、タグ、参照関係などを含む、イメージの基礎的な情報を格納するために使用される。blobsは、イメージ各層の実際のデータを格納するために使用される。layersは、実際のデータ層に対するあるイメージの参照関係を格納するために使用される。manifestsは、あるイメージのタグと、実際のデータ層に対する各タグの参照関係とを格納するために使用される。ソースイメージレポジトリ内におけるイメージファイルの基礎となるデータが特定されると、イメージファイルの基礎となるデータをロックし、基礎となるデータを保存する。 Specifically, after receiving an image file distribution request from the IDServer, image identification is performed in the source image repository, that is, the image file name in the distribution request and the address of the source image repository are analyzed, and the storage location of each layer data of the image file to be distributed in the source image repository, i.e., the first storage location, is identified from the image repository in relation to the special storage structure of the image in the image repository. Therein, each layer data of an image file, i.e., the underlying data, is determined by the special storage structure of the image file within the image repository, and the underlying data includes but is not limited to repositories, blobs, layers, manifests, etc. Among these, repositories are used to store basic information of images, including tenants, tags, reference relationships, and the like. Blobs are used to store the actual data for each layer of the image. layers are used to store references of an image to the actual data layers. Manifests are used to store tags for an image and the reference of each tag to the actual data layer. Once the underlying data of the image file in the source image repository is identified, the underlying data of the image file is locked and the underlying data is preserved.

一例において、基礎となるデータの保存は一時的なものであってもよい。例えば、基礎となるデータをサーバのランダムアクセスメモリRAM、すなわち揮発性メモリに書き込み、今回のイメージ配布オペレーションの実行が終ると、基礎となるデータが占有していたメモリ空間を解放する。さらに、基礎となるデータには永続性があってもよく、例えば、基礎となるデータを、データベース、サーバのローカル磁気ディスク、クラウド側のストレージなどの不揮発性メモリに書き込むことで、後にイメージファイルに対する検証プロセス、または該イメージファイルに対する他の配布オペレーションを行う際に、イメージファイルの格納場所を再び特定する必要がなくなるため、イメージファイル配布の効率を向上させる。 In one example, storage of the underlying data may be temporary. For example, the underlying data is written to the server's random access memory RAM, ie, volatile memory, and the memory space occupied by the underlying data is freed when the current image distribution operation has been performed. In addition, the underlying data may be persistent, for example, writing the underlying data to non-volatile memory such as a database, a server's local magnetic disk, cloud-side storage, etc., to improve the efficiency of image file distribution because later validation processes or other distribution operations on the image file do not need to re-locate the image file.

ステップ103において、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する。 At step 103, each layer data of the image file is distributed from the source image repository to the target image repository according to the first storage location.

具体的には、イメージファイルを配布する場合、ターゲットイメージレポジトリに配布されたファイルデータは、イメージを格納する特定構造に依然として合致する。つまり、ターゲットイメージレポジトリに配布されたイメージファイルは、ソースイメージレポジトリ内のイメージファイルの格納構造と一致しており、その基礎となるデータも一致している。 Specifically, when distributing image files, the file data distributed to the target image repository still conforms to the specific structure in which the images are stored. That is, the image files delivered to the target image repository match the storage structure of the image files in the source image repository, and the underlying data also matches.

そこで、本願の第1実施形態はイメージ配布方法を提供し、該イメージ配布方法によれば、イメージファイルの配布要求を取得し、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定し、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する技術的手段は、イメージ配布が必要な場合、イメージファイルの各層データの格納場所を特定してからイメージ配布を行うことにより、イメージをローカルにプルしてからターゲットイメージレポジトリにプッシュする必要がなくなり、複数のイメージ配布要求のタスクが同時に進行する際にイメージ配布システムサーバ側で配布要求を処理する効率が著しく向上するとともに、イメージファイルをローカルにプルする際に発生する可能性のあるファイル競合が回避され、イメージ配布プロセスの安定性が向上する。 Therefore, the first embodiment of the present application provides an image distribution method, according to the image distribution method, the technical means of obtaining a distribution request for an image file, identifying a first storage location of each layer data of the image file in the source image repository, and distributing each layer data of the image file from the source image repository to the target image repository according to the first storage location is to locally distribute the image by identifying the storage location of each layer data of the image file and performing image distribution when image distribution is required. To eliminate the need to pull and then push to a target image repository, significantly improve the efficiency of processing distribution requests on the image distribution system server side when multiple image distribution request tasks are progressing simultaneously, and avoid file conflicts that may occur when pulling image files locally to improve the stability of the image distribution process.

本発明の第2実施形態は、イメージ配布方法に関し、第2実施形態は第1実施形態とほぼ同じである。本実施形態において、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する前に、配布対象のイメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在しないか否かを判定し、判定結果がYESである場合、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布し、それ以外の場合、イメージファイルの配布オペレーションを実行しない。ターゲットイメージレポジトリ内のイメージファイルに対する検査により、イメージ配布時の不要なデータ伝送オペレーションを回避できる。 A second embodiment of the present invention relates to an image distribution method, and the second embodiment is substantially the same as the first embodiment. In this embodiment, before distributing each layer data of the image file from the source image repository to the target image repository, it is determined whether or not the same image file as the image file to be distributed exists in the target image repository, and if the determination result is YES, each layer data of the image file is distributed from the source image repository to the target image repository, otherwise the image file distribution operation is not executed. Checking against image files in the target image repository avoids unnecessary data transfer operations during image distribution.

本実施形態におけるイメージ配布方法の具体的なフローチャートは図2に示すように、具体的には、以下のステップを含む。 A specific flow chart of the image distribution method in this embodiment includes the following steps, as shown in FIG.

ステップ201において、イメージファイルの配布要求を取得する。 At step 201, an image file distribution request is obtained.

ステップ202において、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定する。 At step 202, a first storage location within the source image repository for each layer data of the image file is identified.

本実施形態におけるステップ201およびステップ202は、本願の第1実施形態におけるステップ101およびステップ102と同じであり、関連する実施の詳細については、第1実施形態で既に具体的に説明したため、ここでは繰り返しを省く。 Step 201 and step 202 in this embodiment are the same as step 101 and step 102 in the first embodiment of the present application, and the related implementation details have already been specifically described in the first embodiment, so repetition is omitted here.

ステップ203において、前記イメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在するか否かを判定する。ターゲットイメージレポジトリ内に前記イメージファイルと同じイメージファイルが存在しない場合、ステップ204を実行し、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布し、それ以外の場合、イメージ配布プロセスを終了する。 At step 203, it is determined whether an image file identical to the image file exists in the target image repository. If the same image file as the image file does not exist in the target image repository, execute step 204 to distribute each layer data of the image file from the source image repository to the target image repository according to the first storage location, otherwise, end the image distribution process.

具体的には、配布対象のイメージファイルと同じイメージファイルがターゲットイメージレポジトリに存在する場合、ユーザが要求しているイメージファイルがイメージレポジトリに既に存在することを示すため、イメージ配布オペレーションが不要となり、仮想マシン環境下での伝送リソースを節約し、占有帯域幅を低減してイメージ配布のスピードをさらに上げ、複数のイメージ配布要求のタスクが同時に進行する場合、イメージ配布システムのサーバ側で配布要求の処理効率を大幅に向上させる。 Specifically, when the same image file as the image file to be distributed exists in the target image repository, it indicates that the image file requested by the user already exists in the image repository, so that the image distribution operation becomes unnecessary, the transmission resources in the virtual machine environment are saved, the occupied bandwidth is reduced, the image distribution speed is further increased, and when a plurality of image distribution request tasks are progressing at the same time, the distribution request processing efficiency is greatly improved on the server side of the image distribution system.

一例において、前記イメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在しないと判定する方法は以下の通りである。 In one example, a method for determining that an image file identical to the image file does not exist in the target image repository is as follows.

まず、配布対象のイメージファイルのイメージ名をターゲットイメージレポジトリ内で検索し、すなわち、配布対象のイメージファイルと同じ名前のイメージファイルがターゲットイメージレポジトリ内に存在するか否かを特定する。イメージファイルと同じ名前のイメージファイルがターゲットイメージレポジトリ内に存在しない場合、配布対象のイメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在しないと判定する。この場合、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する。 First, the image name of the image file to be distributed is searched in the target image repository, ie, whether an image file with the same name as the image file to be distributed exists in the target image repository. If an image file with the same name as the image file does not exist in the target image repository, it is determined that an image file with the same name as the image file to be distributed does not exist in the target image repository. In this case, each layer data of the image file is distributed from the source image repository to the target image repository according to the first storage location.

イメージファイルと同じ名前のイメージファイルがターゲットイメージレポジトリ内に存在する場合、イメージファイルと同じ名前のイメージファイルの各層データのターゲットイメージレポジトリ内における格納場所、すなわち第2の格納場所をさらに特定する必要がある。そして、第2の格納場所と第1の格納場所に格納されている各層データを比較し、第2の格納場所に格納されている各層データと第1の格納場所に格納されている各層データとが一致しない場合、配布対象のイメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在しないと判定する。この場合、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する。それ以外の場合、配布対象のイメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在すると判定し、イメージ配布プロセスを終了する。 If an image file with the same name as the image file exists in the target image repository, it is necessary to further identify a storage location in the target image repository for each layer data of the image file with the same name as the image file, i.e. a second storage location. Then, each layer data stored in the second storage location and the first storage location are compared, and when each layer data stored in the second storage location and each layer data stored in the first storage location do not match, it is determined that the same image file as the image file to be distributed does not exist in the target image repository. In this case, each layer data of the image file is distributed from the source image repository to the target image repository according to the first storage location. Otherwise, determine that the same image file as the image file to be distributed exists in the target image repository, and terminate the image distribution process.

本実施形態において、イメージファイルの各層データからイメージファイルのファイル特徴を取得し、配布対象のイメージファイルと同じ名前のターゲットイメージレポジトリ内のイメージファイルのファイル特徴と、配布対象のイメージファイルのファイル特徴とが一致する場合、両者が同じイメージファイルであると判定する。ここで比較されるファイル特徴には、イメージファイルのデータ数、サイズ、md5コード、sha256コードなどが含まれるが、これらに限定されない。いずれか一つのファイル特徴に相違があれば、両者が異なるイメージファイルであると判定する。 In this embodiment, the file characteristics of the image file are obtained from each layer data of the image file, and when the file characteristics of the image file in the target image repository with the same name as the image file to be distributed match the file characteristics of the image file to be distributed, it is determined that both are the same image file. The file features compared here include, but are not limited to, the number of data in the image file, size, md5 code, sha256 code, and the like. If there is a difference in any one of the file characteristics, it is determined that the two are different image files.

一例において、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する具体的なオペレーション方法は、配布対象のイメージファイルの各層データを第1の格納場所からコピーし、コピーされたイメージファイルの各層データを前記第2の格納場所に上書きして格納することによって行うことができる。この方法でイメージ配布を行う場合、ターゲットイメージレポジトリに配布されたデータは、イメージを格納する特定構造に依然として、自動的に合致する。 In one example, a specific operation method for distributing each layer data of an image file from the source image repository to the target image repository according to the first storage location can be performed by copying each layer data of the image file to be distributed from the first storage location, and overwriting and storing the copied layer data of the image file in the second storage location. When distributing images in this manner, the data distributed to the target image repository still automatically conforms to the specific structure in which the images are stored.

これにより、本実施形態は、イメージ配布方法を提供し、該イメージ配布方法によれば、イメージを配布する前に、配布対象のイメージファイルと同じ名前のターゲットイメージレポジトリ内のイメージファイルを特定し、完全に同じイメージファイルが存在する場合、イメージ配布オペレーションを行わないことで、データ伝送によって占有される帯域幅が削減されるため、複数の配布要求が同時に発生した場合の処理効率が大幅に向上するとともに、配布完了後の、ターゲットイメージレポジトリ内で発生する同じイメージファイルのファイル競合の問題を回避することもできる。 Thus, the present embodiment provides an image distribution method, according to which, before distributing an image, an image file in the target image repository that has the same name as the image file to be distributed is identified, and if there is an image file that is exactly the same, the image distribution operation is not performed. This reduces the bandwidth occupied by data transmission, thereby greatly improving the processing efficiency when multiple distribution requests occur at the same time. It can also be evaded.

当業者であれば、上記の各種方法のステップ分けは、単に明確に説明するためになされたものであり、実装時に1つのステップに統合するか、又は一部のステップを複数のステップに再分割することができ、同一の論理的関係が含まれていれば、いずれも本願の保護範囲内に含まれること、アルゴリズム及びプロセスの中核となる設計を変更せずに、そのアルゴリズム又はプロセスに重要でない修正を加えたり、又は重要でない設計を導入したりしたものであれば、いずれも本願の保護範囲内に含まれることは、理解できるであろう。 Those skilled in the art will understand that the above division of steps in the various methods is merely for the sake of clarity, and that they can be integrated into one step or subdivided into multiple steps when implemented, and that if they contain the same logical relationship, they will all fall within the protection scope of the present application; You will understand.

本発明の第3実施形態は、イメージ配布方法に関し、第3実施形態は第1実施形態とほぼ同じである。本実施形態において、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布した後に、配布後のイメージファイルの各層データの第3の格納場所と第1の格納場所とを検証する。両者が一致する場合、イメージ配布が成功したことを示すため、イメージ配布プロセスを終了し、両者が一致しない場合、配布中にイメージファイルにエラーが発生したことを示すため、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布するステップを再び実行する。本実施形態において、配布後のファイルを検証することにより、イメージファイル配布の正確度を保証し、イメージ配布プロセスの安定性をさらに向上させる。 A third embodiment of the present invention relates to an image distribution method, and the third embodiment is substantially the same as the first embodiment. In this embodiment, after each layer data of the image file is distributed from the source image repository to the target image repository, the third storage location and the first storage location of each layer data of the distributed image file are verified. If both match, indicating that the image distribution was successful, the image distribution process is terminated, and if they do not match, indicating that an error occurred in the image file during distribution, the step of distributing each layer data of the image file from the source image repository to the target image repository according to the first storage location is performed again. In this embodiment, verifying the file after distribution ensures the accuracy of image file distribution and further improves the stability of the image distribution process.

本実施形態におけるイメージ配布方法の具体的なフローチャートは図3に示すように、具体的には、以下のステップを含む。 A specific flow chart of the image distribution method in this embodiment includes the following steps, as shown in FIG.

ステップ301において、イメージファイルの配布要求を取得する。 At step 301, an image file distribution request is obtained.

ステップ302において、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定する。 At step 302, a first storage location in the source image repository for each layer data of the image file is identified.

ステップ303において、前記イメージファイルと同じイメージファイルがターゲットイメージレポジトリ内に存在するか否かを判定する。ターゲットイメージレポジトリ内に前記イメージファイルと同じイメージファイルが存在しない場合、ステップ304を実行し、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布し、それ以外の場合、イメージ配布プロセスを終了する。 At step 303, it is determined whether an image file identical to the image file exists in the target image repository. If the same image file as the image file does not exist in the target image repository, execute step 304 to distribute each layer data of the image file from the source image repository to the target image repository according to the first storage location, otherwise, end the image distribution process.

本実施形態におけるステップ301からステップ304は、第2実施形態におけるステップ301からステップ304とほぼ同じであり、関連する実施の詳細については、第2実施形態で既に具体的に説明したため、ここでは繰り返しを省く。 Steps 301 to 304 in this embodiment are substantially the same as steps 301 to 304 in the second embodiment, and the related implementation details have already been specifically described in the second embodiment, so repetition is omitted here.

ステップ305において、配布後のイメージファイルの第3の格納場所に格納されている各層データと、第1の格納場所に格納されている各層データとが一致するか否かを検証する。前記第3の格納場所に格納されている各層データと前記第1の格納場所に格納されている各層データとが一致しないと検証された場合、配布プロセスを終了する。それ以外の場合、ステップ304を再び実行し、第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布する。 At step 305, it is verified whether or not each layer data stored in the third storage location of the distributed image file matches each layer data stored in the first storage location. If it is verified that the layer data stored in the third storage location and the layer data stored in the first storage location do not match, the distribution process is terminated. Otherwise, execute step 304 again to distribute each layer data of the image file from the source image repository to the target image repository according to the first storage location.

具体的には、イメージファイルの配布が完了した後に、配布後のイメージファイルの各層データの、ターゲットイメージレポジトリ内における第3の格納場所を特定する。そして、第3の格納場所に格納されている各層データと第1の格納場所に格納されている各層データとが一致するか否かを検証する。第3の格納場所に格納されている各層データと第1の格納場所に格納されている各層データとが一致しないと検証された場合、ステップ304を再び実行する。配布後のイメージファイルの格納データを検証することにより、配布後のイメージファイルのデータに欠落や誤りがないことを保証し、イメージ配布プロセスにおけるイメージファイルの安定性をさらに向上させる。 Specifically, after the distribution of the image file is completed, the third storage location in the target image repository for each layer data of the distributed image file is identified. Then, it is verified whether or not each layer data stored in the third storage location matches each layer data stored in the first storage location. If it is verified that the layer data stored in the third storage location and the layer data stored in the first storage location do not match, step 304 is performed again. By verifying the stored data of the image file after distribution, it is guaranteed that there are no omissions or errors in the data of the image file after distribution, and the stability of the image file in the image distribution process is further improved.

本実施形態において、本実施形態におけるイメージファイルの各層データを検証する際に、第2の実施形態と似ており、同様に、2つのイメージファイルの、ファイルのデータ数、サイズ、md5コード、sha256コードなどのファイル特徴を比較する。ターゲットイメージレポジトリ内の配布後イメージファイルと、ソースイメージレポジトリ内のイメージファイルとのいずれか一つのファイル特性に相違がある場合、両方の格納データが一致しないことを示す。 In this embodiment, when verifying each layer data of the image file in this embodiment, similar to the second embodiment, the file features of the two image files, such as the number of file data, size, md5 code, sha256 code, etc., are compared. A difference in any one file characteristic between the post-distribution image file in the target image repository and the image file in the source image repository indicates a mismatch between the stored data of both.

また、ユーザは、イメージ配布システムのサーバ側にイメージ再配布の回数上限を設定することもできる。イメージ配布にエラーが複数回発生した場合、システムに問題が発生した可能性があると考え、管理者にエラーメッセージをプッシュし、管理者にシステムに他のエラーが発生した否かをチェックさせることで、イメージ配布プロセスが循環エラーに陥って、システムリソースを浪費することを回避する。 Also, the user can set the upper limit of the number of image redistribution on the server side of the image distribution system. If an error occurs multiple times in image distribution, it is assumed that a problem may have occurred in the system, and an error message is pushed to the administrator to make the administrator check whether other errors have occurred in the system, thereby avoiding waste of system resources due to cyclical errors in the image distribution process.

一例において、イメージファイルの格納アドレス情報を永続的に保存する必要がある場合、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定した後に、および、イメージファイルと同じ名前のイメージファイルの各層データの、ターゲットイメージレポジトリ内における第2の格納場所を特定した後に、第1の格納場所と第2の格納場所をそれぞれ、データベース、サーバのローカル磁気ディスク、クラウド側のストレージなどの不揮発性メモリに書き込んでもよい。 In one example, if the storage address information of an image file needs to be permanently stored, after identifying the first storage location in the source image repository for each layer data of the image file, and after identifying the second storage location in the target image repository for each layer data of the image file with the same name as the image file, the first storage location and the second storage location may be written to a non-volatile memory such as a database, a server's local magnetic disk, or cloud-side storage, respectively.

本実施形態において、ステップ305の後に判断してステップ304を再び実行する場合、まず、不揮発性メモリから、保存されている第1の格納場所を取得する。配布後のイメージファイルの、ターゲットイメージレポジトリ内における第3の格納場所を直接特定できる以外にも、さらに、不揮発性メモリから、以前に保存された第2の格納場所を取得することもできる。次に、第1の格納場所に記憶されている各層データと、第2の格納場所または第3の格納場所に記憶されている各層データとが一致するか否かを検証することにより、配布後のイメージファイルの検証プロセスを完了する。第1の格納場所に記憶されている各層データと、第2の格納場所または第3の格納場所に記憶されている各層データとが一致する場合、データ配布プロセスを終了し、それ以外の場合、ステップ304を再び実行する。 In the present embodiment, when determining after step 305 to execute step 304 again, first, the saved first storage location is obtained from the non-volatile memory. Besides being able to directly identify the third storage location in the target image repository for the distributed image file, it is also possible to obtain the previously saved second storage location from the non-volatile memory. Next, by verifying whether or not each layer data stored in the first storage location matches each layer data stored in a second storage location or a third storage location, the post-distribution image file verification process is completed. If the layer data stored in the first storage location matches the layer data stored in the second storage location or the third storage location, terminate the data distribution process, otherwise perform step 304 again.

これにより、本実施形態は、イメージ配布方法を提供し、該イメージ配布方法によれば、イメージの配布が完了した後に、ターゲットイメージレポジトリ内の配布後のイメージファイルの各層データと、ソースイメージレポジトリ内のイメージファイルの各層データとが一致するか否かを検証し、イメージファイル配布の正確度を保証し、イメージ配布プロセスの安定性をさらに向上させる。 Thus, the present embodiment provides an image distribution method, according to which, after the image distribution is completed, it is verified whether each layer data of the distributed image file in the target image repository and each layer data of the image file in the source image repository match, to ensure the accuracy of the image file distribution and further improve the stability of the image distribution process.

本願の第4実施形態はイメージ配布装置に関し、図4に示すように、以下の部品を含む。 The fourth embodiment of the present application relates to an image distribution device, which includes the following components, as shown in FIG.

受信モジュール401は、イメージファイルの配布要求を取得し、イメージ名を解決した後に、イメージ名を制御モジュールに送信するように構成されている。 The receiving module 401 is configured to receive an image file distribution request, resolve the image name, and then send the image name to the control module.

制御モジュール402は、配布対象のイメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定するように構成されている。 Control module 402 is configured to identify a first storage location within the source image repository for each layer of data of the image file to be distributed.

一例において、さらに、配布対象のイメージファイルと同じ名前のイメージファイルの各層データの、ターゲットイメージレポジトリ内における第2の格納場所を特定するように構成されている。 In one example, it is further configured to identify a second storage location within the target image repository for each layer of data for an image file that has the same name as the image file to be distributed.

一例において、さらに、配布後のイメージファイルの各層データの、ターゲットイメージレポジトリ内における第3の格納場所を特定するように構成されている。 In one example, it is further configured to identify a third storage location within the target image repository for each layer of data of the distributed image file.

一例において、さらに、イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定した後に、および、イメージファイルと同じ名前のイメージファイルの各層データの、ターゲットイメージレポジトリ内における第2の格納場所を特定した後に、第1の格納場所と第2の格納場所をそれぞれ、データベース、サーバのローカル磁気ディスク、クラウド側のストレージなどの不揮発性メモリに書き込むように構成されている。 In one example, after identifying a first storage location in the source image repository for each layer data of the image file, and after identifying a second storage location in the target image repository for each layer data of the image file with the same name as the image file, the first storage location and the second storage location are each configured to be written to a non-volatile memory such as a database, a server's local magnetic disk, or cloud-side storage.

検証モジュール403は、制御モジュール402によって特定された第1の格納場所および第2の格納場所に応じて、イメージファイルと同じイメージファイルがターゲットイメージレポジトリに存在しないと判定し、検証結果を配布モジュール404に送信するように構成されている。 Validation module 403 is configured to determine that an image file identical to the image file does not exist in the target image repository according to the first and second storage locations identified by control module 402, and to send the validation result to distribution module 404.

一例において、さらに、不揮発性メモリから、第1の格納場所及び/又は第2の格納場所を取得するように構成されている。 In one example, it is further configured to obtain the first storage location and/or the second storage location from the non-volatile memory.

一例において、さらに、配布後のイメージファイルの各層データの第3の格納場所と第1の格納場所とが一致するか否かを検証し、検証結果を配布モジュール404に送信するように構成されている。 In one example, it is further configured to verify whether the third storage location and the first storage location of each layer data of the distributed image file match, and to send the verification result to the distribution module 404.

配布モジュール404は、検証モジュールから送信された検証結果および第1の格納場所に応じて、イメージファイルの各層データをソースイメージレポジトリからターゲットイメージレポジトリに配布するように構成されている。 The distribution module 404 is configured to distribute each layer data of the image file from the source image repository to the target image repository according to the verification result and the first storage location sent from the verification module.

具体的な応用において、本実施形態におけるイメージ装置の構成と相互作用は図5に示されている。ここで、受信モジュール501はクライアント側に接続され、ユーザがクライアント側を介して発行したイメージ配布要求を受信するように構成されている。 In a specific application, the configuration and interaction of the imaging device in this embodiment is shown in FIG. Here, the receiving module 501 is connected to the client side and configured to receive an image distribution request issued by the user via the client side.

制御モジュール502、検証モジュール503、および配布モジュール504は、いずれも、ソースイメージレポジトリおよびターゲットイメージレポジトリに同時に通信可能に接続されている。 Control module 502, verification module 503, and distribution module 504 are all communicatively connected to the source image repository and the target image repository simultaneously.

本実施形態は、第1実施形態、第2実施形態または第3実施形態に対応する装置実施形態であり、本実施形態は第1実施形態または第2実施形態と組み合わせて実施できることは、容易に理解できる。第1実施形態、第2実施形態または第3実施形態で記載された関連する技術的詳細は、本実施形態においても有効であるため、重複を減らすためにここでは説明を省く。したがって、本実施形態で記載された関連する技術的詳細は、第1実施形態、第2実施形態または第3実施形態にも適用可能である。 This embodiment is an apparatus embodiment corresponding to the first, second, or third embodiment, and it is easy to understand that this embodiment can be implemented in combination with the first embodiment or the second embodiment. Relevant technical details described in the first, second or third embodiments are also valid in this embodiment and are omitted here to reduce duplication. Therefore, the relevant technical details described in this embodiment are also applicable to the first, second or third embodiments.

なお、本実施形態に係る各モジュールはいずれも論理モジュールであり、実際の応用において、1つの論理ユニットは1つの物理ユニットであってもよく、1つの物理ユニットの一部であってもよく、さらに、複数の物理ユニットの組み合わせで実現してもよい。また、本願の創造的な部分を際立たせるために、本願で提起された技術的課題の解決にあまり関係のない手段を本実施例には導入していないが、これは本実施例に他の手段が存在しないことを示しているわけではない。 Each module according to this embodiment is a logical module, and in actual application, one logical unit may be one physical unit, may be part of one physical unit, or may be realized by combining a plurality of physical units. In addition, in order to highlight the creative part of the present application, the means less related to the solution of the technical problems posed in the present application are not introduced into the present embodiment, but this does not indicate that there are no other means in the present embodiment.

本発明の第5実施形態はサーバに関する。図6に示すように、少なくとも1つのプロセッサ601と、少なくとも1つのプロセッサ601と通信可能に接続されたメモリ602とを含み、メモリ602には少なくとも1つのプロセッサ601により実行できる指令が記憶されており、指令が少なくとも1つのプロセッサ601により実行されることで、少なくとも1つのプロセッサ601により上記したイメージ配布方法を実行できる。 A fifth embodiment of the present invention relates to a server. As shown in FIG. 6, at least one processor 601 and a memory 602 communicatively connected to the at least one processor 601 are stored with instructions executable by the at least one processor 601, and the instructions are executed by the at least one processor 601 so that the at least one processor 601 can perform the image distribution method described above.

ここで、メモリおよびプロセッサはバス方式で接続され、バスは任意の数の相互接続されたバスおよびブリッジを含むことができ、バスによって1つまたは複数のプロセッサとメモリの様々な回路が一つに接続される。バスはまた、周辺機器、電圧安定器、およびパワーマネジメント回路などの様々な他の回路を一つに接続することができるが、これらは当分野で周知なことであるので、本文ではこれ以上説明しない。バスインターフェースは、バスとトランシーバとの間のインターフェースを提供する。トランシーバは、1つの素子であってもよく、複数の受信機および送信機のような複数の素子であってもよく、伝送媒体上で様々な他の装置と通信するための手段を提供する。プロセッサによって処理されたデータはアンテナを介して無線媒体で伝送され、本実施形態において、アンテナはまたデータを受信して、プロセッサにデータを伝送する。 Here, the memory and the processor are connected in a bus fashion, the bus can include any number of interconnected buses and bridges, and the bus connects together the various circuits of one or more processors and memory. The bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and will not be further described herein. A bus interface provides an interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, and provides a means for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over a wireless medium via an antenna, which in this embodiment also receives data and transmits data to the processor.

プロセッサは、バスの管理および通常の処理を担う以外にも、さらにタイミング、周辺インターフェース、電圧調整、電源管理、およびその他の制御機能を含む様々な機能を提供することができる。一方、メモリは、プロセッサによりオペレーションを実行するときに使用されるデータを記憶するために使用されてもよい。 Besides being responsible for bus management and normal processing, the processor may also provide a variety of functions including timing, peripheral interfacing, voltage regulation, power management, and other control functions. Memory, on the other hand, may be used to store data used in performing operations by the processor.

本願の第五実施例は、コンピュータプログラムが記憶されたコンピュータ可読記憶媒体に関する。コンピュータプログラムがプロセッサにより実行された時、上記の方法実施形態を実現する。 A fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program. The computer program implements the above method embodiments when executed by the processor.

すなわち、当業者であれば、上記の実施形態の方法における全部または一部のステップを実施することは、プログラムによって関連するハードウェアに指令することによって実現できることは、理解できるであろう。このプログラムは1つの記憶媒体に記憶され、1つの装置(ワンチップコンピュータ、チップなどであってもよい)またはプロセッサ(processor)に本願の各実施形態に記載の方法の全部または一部のステップを実行させるためのいくつかの指令を含む。一方、上記記憶媒体は、USBメモリ、リムーバブルハードディスク、リードオンリーメモリ(ROM:Read-Only Memory)、ランダムアクセスメモリ(RAM:Random Access Memory)、磁気ディスク又は光ディスク等、プログラムコードを記憶可能な種々の媒体を含む。 That is, those skilled in the art will understand that implementing all or part of the steps in the methods of the above embodiments can be realized by instructing relevant hardware by a program. This program is stored in one storage medium and includes some instructions for causing one device (which may be a one-chip computer, chip, etc.) or processor to perform all or part of the steps of the methods described in each embodiment of the present application. On the other hand, the storage medium includes various media capable of storing program code, such as USB memory, removable hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk.

当業者であれば、上記の各実施例は、本出願を実施するための具体的な実施例であり、実際の応用においては、本願の精神及び範囲を逸脱することなく、形式的に及び細部に様々な変更を加えることができることを理解することができる。
Those skilled in the art can appreciate that the above examples are specific examples for carrying out the present application, and that in actual application various changes can be made in form and detail without departing from the spirit and scope of the present application.

Claims (11)

イメージ配布方法であって、
イメージファイルの配布要求を取得することと、
前記イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定することと、
前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布することと、
を含むイメージ配布方法。
An image distribution method comprising:
obtaining a distribution request for an image file;
identifying a first storage location within a source image repository for each layer data of the image file;
distributing layer data of the image file from the source image repository to a target image repository according to the first storage location;
Image distribution methods, including
前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布することは、
前記メージファイルの各層データを前記第1の格納場所からコピーし、コピーされた前記イメージファイルの各層データを前記ターゲットイメージレポジトリに格納することを含む
請求項1に記載のイメージ配布方法。
distributing layer data of the image file from the source image repository to a target image repository according to the first storage location;
2. The method of claim 1, comprising copying each layer data of said image file from said first storage location and storing each layer data of said copied image file in said target image repository.
前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布することの前に、前記イメージファイルと同じイメージファイルが前記ターゲットイメージレポジトリ内に存在しないと判定することをさらに含む
請求項1に記載のイメージ配布方法。
2. The image distribution method of claim 1, further comprising, prior to distributing layer data of the image file from the source image repository to a target image repository according to the first storage location, determining that an image file identical to the image file does not exist in the target image repository.
前記の前記イメージファイルと同じイメージファイルが前記ターゲットイメージレポジトリ内に存在しないと判定することは、
前記イメージファイルと同じ名前のイメージファイルが前記ターゲットイメージレポジトリ内に存在するか否かを判定することと、
前記イメージファイルと同じ名前のイメージファイルが前記ターゲットイメージレポジトリ内に存在しない場合、前記イメージファイルと同じイメージファイルが前記ターゲットイメージレポジトリ内に存在しないと判定することと、を含む
請求項3に記載のイメージ配布方法。
Determining that an image file that is the same as the image file does not exist in the target image repository includes:
determining whether an image file with the same name as the image file exists in the target image repository;
4. The method of claim 3, comprising determining that an image file with the same name as the image file does not exist in the target image repository if an image file with the same name as the image file does not exist in the target image repository.
前記の前記イメージファイルと同じイメージファイルが前記ターゲットイメージレポジトリ内に存在しないと判定することは、
前記イメージファイルと同じ名前のイメージファイルが前記ターゲットイメージレポジトリ内に存在する場合、前記イメージファイルと同じ名前のイメージファイルの各層データの、前記ターゲットイメージレポジトリ内における第2の格納場所を特定することと、
前記第2の格納場所に格納されている各層データと前記第1の格納場所に格納されている各層データとが一致しない場合、前記イメージファイルと同じイメージファイルが前記ターゲットイメージレポジトリ内に存在しないと判定することと、
をさらに含む請求項4に記載のイメージ配布方法。
Determining that an image file that is the same as the image file does not exist in the target image repository includes:
identifying a second storage location in the target image repository for each layer data of an image file with the same name as the image file if an image file with the same name as the image file exists in the target image repository;
determining that an image file identical to the image file does not exist in the target image repository if layer data stored in the second storage location and layer data stored in the first storage location do not match;
5. The image distribution method of claim 4, further comprising:
前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布することの後に、
配布後のイメージファイルの各層データの、前記ターゲットイメージレポジトリ内における第3の格納場所を特定することと、
前記第3の格納場所に格納されている各層データと前記第1の格納場所に格納されている各層データとが一致しないと検証された場合、前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布するステップを再び実行することと、
をさらに含む請求項1から4の何れか一項に記載のイメージ配布方法。
after distributing each layer data of the image file from the source image repository to a target image repository according to the first storage location;
identifying a third storage location within the target image repository for layer data of a distributed image file;
if it is verified that the layer data stored in the third storage location and the layer data stored in the first storage location do not match, again performing the step of distributing the layer data of the image file from the source image repository to the target image repository according to the first storage location;
5. The image distribution method according to any one of claims 1 to 4, further comprising:
前記の前記イメージファイルの各層データの、ソースイメージレポジトリ内における第1の格納場所を特定することの後に、
前記第1の格納場所を不揮発性メモリに書き込むことをさらに含み、
前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布する前記ステップを再び実行することにおいて、前記第1の格納場所は前記不揮発性メモリから取得される
請求項6に記載のイメージ配布方法。
after identifying a first storage location within a source image repository for each layer data of said image file;
further comprising writing the first storage location to non-volatile memory;
7. The image distribution method of claim 6, wherein re-performing the step of distributing each layer data of the image file from the source image repository to the target image repository according to the first storage location, wherein the first storage location is obtained from the non-volatile memory.
前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布することは、
前記イメージファイルの各層データを前記第1の格納場所からコピーし、コピーされた前記イメージファイルの各層データを前記第2の格納場所に上書きして格納すること
を含む請求項5に記載のイメージ配布方法。
distributing layer data of the image file from the source image repository to a target image repository according to the first storage location;
6. The image distribution method according to claim 5, comprising copying each layer data of the image file from the first storage location, and overwriting and storing the copied layer data of the image file in the second storage location.
前記の前記イメージファイルと同じ名前のイメージファイルの各層データの、前記ターゲットイメージレポジトリ内における第2の格納場所を特定することの後に、
前記第2の格納場所を不揮発性メモリに書き込むことをさらに含み、
前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布することの後に、
前記不揮発性メモリから前記第2の格納場所を取得することと、
前記第2の格納場所に格納されている各層データと前記第1の格納場所に格納されている各層データとが一致しないと検証された場合、前記の前記第1の格納場所に応じて、前記イメージファイルの各層データを前記ソースイメージレポジトリからターゲットイメージレポジトリに配布するステップを再び実行することと、
をさらに含む請求項8に記載のイメージ配布方法。
after identifying a second storage location within the target image repository for each layer of data of an image file having the same name as the image file;
further comprising writing the second storage location to non-volatile memory;
after distributing each layer data of the image file from the source image repository to a target image repository according to the first storage location;
obtaining the second storage location from the non-volatile memory;
if it is verified that the layer data stored in the second storage location and the layer data stored in the first storage location do not match, again performing the step of distributing the layer data of the image file from the source image repository to the target image repository according to the first storage location;
9. The image distribution method of claim 8, further comprising:
サーバであって、
少なくとも1つのプロセッサと、
前記少なくとも1つのプロセッサと通信可能に接続されたメモリと、を含み、
前記メモリには前記少なくとも1つのプロセッサにより実行できる指令が記憶されており、前記指令が前記少なくとも1つのプロセッサにより実行されることで、前記少なくとも1つのプロセッサにより請求項1から9の何れか一項に記載のイメージ配布方法を実行できる
サーバ。
a server,
at least one processor;
a memory communicatively coupled to the at least one processor;
The server stores instructions executable by the at least one processor in the memory, and the instructions are executed by the at least one processor so that the at least one processor can execute the image distribution method according to any one of claims 1 to 9.
コンピュータ可読記憶媒体であって、
コンピュータプログラムが記憶されており、前記コンピュータプログラムがプロセッサにより実行された場合、請求項1から9の何れか一項に記載のイメージ配布方法を実現する
コンピュータ可読記憶媒体。
A computer readable storage medium,
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the image distribution method according to any one of claims 1 to 9.
JP2022581580A 2020-06-30 2021-03-18 Image distribution method, electronic device and storage medium Pending JP2023532138A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN202010618603.3A CN113872999A (en) 2020-06-30 2020-06-30 Mirror image distribution method, electronic device and storage medium
CN202010618603.3 2020-06-30
PCT/CN2021/081632 WO2022001203A1 (en) 2020-06-30 2021-03-18 Mirror image distribution method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
JP2023532138A true JP2023532138A (en) 2023-07-26

Family

ID=78981645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022581580A Pending JP2023532138A (en) 2020-06-30 2021-03-18 Image distribution method, electronic device and storage medium

Country Status (5)

Country Link
US (1) US20230269295A1 (en)
EP (1) EP4174645A4 (en)
JP (1) JP2023532138A (en)
CN (1) CN113872999A (en)
WO (1) WO2022001203A1 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740048B (en) * 2016-01-26 2019-03-08 华为技术有限公司 A kind of mirror image management method, apparatus and system
CN106506587B (en) * 2016-09-23 2021-08-06 中国人民解放军国防科学技术大学 Docker mirror image downloading method based on distributed storage
CN106776149A (en) * 2017-01-04 2017-05-31 郑州云海信息技术有限公司 Local container mirror image is uploaded to the method and system in mirror image warehouse
CN108322496A (en) * 2017-01-17 2018-07-24 北京京东尚科信息技术有限公司 Image file distribution method and system, computer readable storage medium, electronic equipment
CN108667884B (en) * 2017-04-01 2021-01-05 华为技术有限公司 Mirror image distribution method, mirror image acquisition method and device
CN107566195A (en) * 2017-10-23 2018-01-09 中国联合网络通信集团有限公司 Mirror image warehouse processing method and system
US11288377B1 (en) * 2019-10-03 2022-03-29 Pavel Izhutov Virtual machine-based trusted execution environment
US11093221B1 (en) * 2020-02-14 2021-08-17 Red Hat, Inc. Automatic containerization of operating system distributions

Also Published As

Publication number Publication date
CN113872999A (en) 2021-12-31
WO2022001203A1 (en) 2022-01-06
EP4174645A1 (en) 2023-05-03
US20230269295A1 (en) 2023-08-24
EP4174645A4 (en) 2024-07-03

Similar Documents

Publication Publication Date Title
CN106506587B (en) Docker mirror image downloading method based on distributed storage
CN109542611B (en) Database-as-a-service system, database scheduling method, device and storage medium
US9529682B2 (en) Managing contingency capacity of pooled resources in multiple availability zones
KR101862718B1 (en) Reducing data volume durability state for block-based storage
US20210019055A1 (en) Method and system for enabling agentless backup and restore operations on a container orchestration platform
US9779153B2 (en) Data transfer between storage systems using data fingerprints
US10922303B1 (en) Early detection of corrupt data partition exports
US20110010708A1 (en) System and method for transporting configuration parameters
US9218251B1 (en) Method to perform disaster recovery using block data movement
US20140207919A1 (en) Instance configuration on remote platforms
CN106789249B (en) Hot updating method, client and server
CN115277145B (en) Distributed storage access authorization management method, system, device and readable medium
US10620871B1 (en) Storage scheme for a distributed storage system
US11243980B2 (en) Monotonic transactions in a multi-master database with loosely coupled nodes
CN110389859B (en) Method, apparatus and computer program product for copying data blocks
US20200153889A1 (en) Method for uploading and downloading file, and server for executing the same
CN107566470B (en) Method and device for managing virtual machine in cloud data system
US9588884B2 (en) Systems and methods for in-place reorganization of device storage
US10592469B1 (en) Converting files between thinly and thickly provisioned states
CN112148206A (en) Data reading and writing method and device, electronic equipment and medium
CN107967265B (en) File access method, data server and file access system
US11782882B2 (en) Methods for automated artifact storage management and devices thereof
JP2023532138A (en) Image distribution method, electronic device and storage medium
CN114553521A (en) Remote memory access method, device, equipment and medium
US10713121B1 (en) Dynamic migration of a cloud based distributed file system metadata server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231205

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20240301

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240318

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20240604