Managing data layer synchronization for container images
AssigneeInternational Business Machines Corporation
InventorsXiao Ling Chen, Juliet Candee, Ming Ran Liu, Wen Ji Huang
Life of this patent
Estimating the term…
Abstract
Management of data layer synchronization for container images includes receiving a command and detecting at least one source data layer associated with a source container image in a source repository. A system extracts at least one identifier from the command. The system identifies the at least one identifier in manifest information of each container image of a set of container images. The system detects the source container image from the set of container images and detects the at least one source data layer of the source container image. The system synchronizes the at least one source data layer with the target data layer of the target container image.
Claims20
A computer-implemented method, comprising:
- receiving, by a computer, a command for synchronizing at least one source data layer of a source container image with a target data layer of a target container image;
- extracting, by the computer, at least one identifier from the command;
- identifying, by the computer, the at least one identifier in manifest information of each container image of a set of container images;
- detecting, by the computer, the source container image from the set of container images based on the identification of the at least one identifier in the manifest information, wherein the set of container images comprises the source container image, and wherein the manifest information associated with the detected source container image comprises the at least one identifier;
- detecting, by the computer, the at least one source data layer associated with the source container image based on the detection of the source container image;
- and
- synchronizing, by the computer, the detected at least one source data layer with the target data layer of the target container image.
A computer system, comprising:
- a processor set;
- one or more computer-readable storage media;
- and
- program instructions stored on the one or more computer-readable storage media, the program instructions executable by the processor set to cause the processor set to:
- receive a command to synchronize at least one source data layer of a source container image with a target data layer of a target container image;
- extract at least one identifier from the command;
- identify the at least one identifier in manifest information of each container image of a set of container images;
- detect the source container image from the set of container images based on the identification of the at least one identifier in the manifest information, wherein the set of container images comprises the source container image, and wherein the manifest information associated with the detected source container image comprises the at least one identifier;
- obtain a shared layer attribute from the source container image, wherein the shared layer attribute corresponds to second metadata used to detect the at least one source data layer within a source repository;
- detect the at least one source data layer associated with an original source container image in the source repository, wherein the at least one source data layer is detected based on the shared layer attribute;
- and
- synchronize the detected at least one source data layer with the target data layer of the target container image.
A computer program product for synchronizing at least one source data layer of a source container image with a target data layer of a target container image, the computer program product comprising:
- one or more computer-readable storage media;
- and
- program instructions stored on the one or more computer-readable storage media to perform operations comprising:
- receiving a command for synchronizing the at least one source data layer of the source container image with the target data layer of the target container image;
- extracting at least one identifier from the command;
- identifying the at least one identifier in manifest information of each container image of a set of container images;
- detecting the source container image from the set of container images based on the identification of the at least one identifier in the manifest information, wherein the set of container images comprises the source container image, and wherein the manifest information associated with the detected source container image comprises the at least one identifier;
- detecting the at least one source data layer associated with the source container image based on the detection of the source container image;
- and
- synchronizing the detected at least one source data layer with the target data layer of the target container image.
Dependencies are inferred from the claim text.