Updating running containers without rebuilding container images
AssigneeInternational Business Machines Corporation
InventorsZhi Li Guan, Peng Hui Jiang, Jun Su, Kun Yang, Cheng Wu
Life of this patent
Estimating the term…
Abstract
Managing container updates is provided. A changed file corresponding to a new version of an application is retrieved from a persistent volume based on a mapping between the new version of the application and the changed file. The changed file corresponding to the new version of the application is loaded in a corresponding file of a running container to update the corresponding file of the running container without redeploying the running container using an updated container image.
Claims17
A computer-implemented method for managing container updates, the computer-implemented method comprising:
- performing, by a computer, using a container update manager, an analysis of source code of each respective file of a container image corresponding to a new version of an application having an update to a component of the application;
- categorizing, by the computer, using the container update manager, each respective file of the container image as one of a static file or a changed file based on the analysis of the source code of each respective file;
- retrieving, by the computer, using the container update manager, the changed file corresponding to the new version of the application from a persistent volume based on a mapping between the new version of the application and the changed file;
- and
- loading, by the computer, using the container update manager, the changed file corresponding to the new version of the application in a corresponding file of a running container to update the corresponding file of the running container without redeploying the running container using an updated container image.
A computer system for managing container updates, the computer system comprising:
- a communication fabric;
- a storage device connected to the communication fabric, wherein the storage device stores program instructions;
- and
- a processor connected to the communication fabric, wherein the processor executes the program instructions to:
- perform, using a container update manager, an analysis of source code of each respective file of a container image corresponding to a new version of an application having an update to a component of the application;
- categorize, using the container update manager, each respective file of the container image as one of a static file or a changed file based on the analysis of the source code of each respective file;
- retrieve, using the container update manager, the changed file corresponding to the new version of the application from a persistent volume based on a mapping between the new version of the application and the changed file;
- and
- load, using the container update manager, the changed file corresponding to the new version of the application in a corresponding file of a running container to update the corresponding file of the running container without redeploying the running container using an updated container image.
A computer program product for managing container updates, the computer program product comprising a computer-readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform a method of:
- performing, by the computer, using a container update manager, an analysis of source code of each respective file of a container image corresponding to a new version of an application having an update to a component of the application;
- categorizing, by the computer, using the container update manager, each respective file of the container image as one of a static file or a changed file based on the analysis of the source code of each respective file;
- retrieving, by the computer, using the container update manager, the changed file corresponding to the new version of the application from a persistent volume based on a mapping between the new version of the application and the changed file;
- and
- loading, by the computer, using the container update manager, the changed file corresponding to the new version of the application in a corresponding file of a running container to update the corresponding file of the running container without redeploying the running container using an updated container image.
Dependencies are inferred from the claim text.