Stateful-stateless container layer management for persistent upgrades and system migration
By dynamically managing container states through layer combination and specification files, the challenges of state transitions in container image upgrades and migrations are addressed, improving scalability and data integrity.
Patent Information
- Application Number
- US19/213463
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Managing the state of layers within container images during migrations or upgrades is challenging, particularly when transitioning between stateful and stateless configurations, leading to rigidity and complications in scaling and data management.
A processing device dynamically manages container states by identifying and combining layers based on specification files, generating new container images with state retention information, allowing seamless transitions between stateful and stateless configurations.
This approach simplifies upgrades, enhances data management flexibility, reduces downtime, and acts as a failsafe against data loss during forced restarts or failures.
Smart Images

Figure US20260377198A1-D00000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Aspects of the present disclosure relate to container images, and more particularly, to stateful or stateless container layer management.BACKGROUND
[0002] Container images are static files that include executable code that may operate an isolated process on information technology (IT) infrastructure. Container images may be widely operable by using open standards and operate across different infrastructure. Container images may include one or more layers within the image, where each layer is utilized for the operation of the container image within a runtime environment. Managing a state of layers within container images may be problematic during migrations or upgrades.BRIEF DESCRIPTION OF THE DRAWINGS
[0003] The described aspects and the advantages thereof may best be understood by reference to the following description taken in conjunction with the accompanying drawings. These drawings in no way limit any changes in form and detail that may be made to the described aspects by one skilled in the art without departing from the spirit and scope of the described aspects.
[0004] FIG. 1 is a block diagram that illustrates an example system in accordance with some aspects of the present disclosure.
[0005] FIG. 2 is a block diagram that illustrates stateful or stateless container layer management in accordance with some aspects of the present disclosure.
[0006] FIG. 3 is a block diagram that illustrates an example system in accordance with some aspects of the present disclosure.
[0007] FIG. 4 is a flow diagram of a method for stateful or stateless container layer management in accordance with some aspects of the present disclosure.
[0008] FIG. 5 is a block diagram of an example of a computer system that may perform one or more of the operations described herein in accordance with some aspects of the present disclosure.DETAILED DESCRIPTION
[0009] Effectively managing a state of a layer within containerized applications during upgrades and migrations may present challenges. Traditional container management systems may utilize volumes and bind mount points to manage states, thereby separating data from application logic to ensure data persistence across container restarts and redeployments. These solutions may be rigid and often requiring manual configurations and intervention to handle state transitions, such as stateful to stateless and vice versa, during application upgrades and migrations. This rigidity may lead to complications in dynamically scaling applications and in particular when one or more layers of the container require a switch from stateless to stateful and vice versa.
[0010] The present disclosure addresses the above-noted and other deficiencies by using a processing device to manage container states dynamically, allowing layers within a container to seamlessly transition between stateful and stateless configurations during runtime operations. In an example, the processing device identifies a first layer from a first set of container layers and a second layer from a second set of container layers for combination. The processing device obtains a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination. The processing device generates a new container image including the combination of the first layer and the second layer based on the specification file. The new container image includes state retention information related to the stateful information or the stateless information associated with the first layer and the second layer.
[0011] The present disclosure provides for various technical advantages. For example, vis-à-vis identifying a first layer from a first set of container layers and a second layer from a second set of container layers for combination, obtaining a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination, and generating a new container image including the combination of the first layer and the second layer based on the specification file, where the new container image includes state retention information related to the stateful information or the stateless information associated with the first layer and the second layer, may significantly simplify upgrades, enhance data management flexibility, and reduces downtime, particularly in distributed computing environments. The present disclosure may also act as a failsafe for containers that are unstable and where the risk of losing data may occur in instances of forced restarts / failure.
[0012] FIG. 1 is a block diagram that illustrates an example system in accordance with some aspects of the present disclosure. As illustrated in FIG. 1, the system 100 includes a computing device 102, processing device 104, memory 106, and a network 108. The computing device 102 may include hardware such as a processing device 104 (e.g., processors, central processing units (CPUs)), memory 106 (e.g., random access memory (RAM), storage devices (e.g., a hard-disk drive (HDD)), and solid-state drives (SSD), etc.), and other hardware devices (e.g., a sound card, video card, etc.). A storage device may include a persistent storage that is capable of storing data. A persistent storage may be a local storage unit or a remote storage unit. Persistent storage may be a magnetic storage unit, optical storage unit, solid state storage unit, electronic storage units (main memory), or similar storage unit. Persistent storage may also be a monolithic / single device or a distributed set of devices. The processing device 104 may be operatively coupled to the memory 106.
[0013] The computing device 102 may communicate with other devices (e.g., computing device 114) via a network 108. The network may be a public network (e.g., the internet), a private network (e.g., a local area network (LAN) or wide area network (WAN)), or a combination thereof. In one example, the network may include a wired or a wireless infrastructure, which may be provided by one or more wireless communications systems, such as a WiFiTM hotspot connected with the network and / or a wireless carrier system that can be implemented using various data processing equipment, communication towers (e.g., cell towers), etc. The network 108 may carry communications (e.g., data, message, packets, frames, etc.) between the computing device 102 and the other devices. For example, the computing device 114 may provide container image instructions 110 to the computing device 102 via the network 108. The computing device 102 may also include one or more sensors (e.g., temperature sensors, moisture sensors, etc.). The computing device may include hardware such as a processing device 104 (e.g., processors, central processing units (CPUs)), memory 106 (e.g., random access memory (RAM), storage devices (e.g., a hard-disk drive (HDD)), and solid-state drives (SSD), etc.), and other hardware devices (e.g., a sound card, a video card, etc.).
[0014] In some aspects, the computing device 102 may comprise any suitable type of computing device or machine that has a programmable processor (e.g., processing device 104) including, for example, server computers, desktop computers, laptop computers, tablet computers, smartphones, set-top boxes, etc. In some examples, the computing device 102 may include a single machine or may include multiple interconnected machines (e.g., multiple servers configured in a cluster). The computing device 102 may be implemented by a common entity / organization or may be implemented by different entities / organizations. The computing device 102 may execute or include an OS. The OS may manage the execution of other components (e.g., software, applications, etc.) and / or may manage access to the hardware (e.g., processors, memory, storage devices etc.) of a device in the computing device 102.
[0015] The computing device 102 may further include a container mechanism 112. The container mechanism 112 may be configured to build a new container image based on a combination of one or more layers from different container images. The computing device 102 may receive the container image instructions 110 such that the container mechanism 112 generates the container image based on the container image instructions 110. For example, the container mechanism 112 may receive the container image instructions to build the new container image having a combination of targeted one or more layers from different container images. The container mechanism 112 may identify at least a first layer within a first set of container layers and a second layer from a second set of container layers for combination and inclusion within the new container image. The new container image may include state retention information related to the stateful information or the stateless information associated with the first layer and the second layer.
[0016] FIG. 2 is a block diagram 200 that illustrates the example system 100 of FIG. 1 in accordance with some aspects of the present disclosure. In the example depicted in FIG. 2, the computing device 102 may be configured to create a new container image based on container image instructions 202. For example, the processing device 104 may receive the container image instructions 202 and process the container image instructions 202 in preparation for building the new container image based on the container image instructions 202. The processing device, upon processing the container image instructions 202 may identify at least a first layer (e.g., Layer2 204b, Layer4 204d) within container image 204 and at least a second layer (e.g., Layer2 206b, Layer4 206d) within container imager 206 for combination. Container image 204 may comprise a plurality of layers (e.g., 204a, 204b, 204c, 204d, …, 204N) and container imager 206 may also comprise a plurality of layers (e.g., 206a, 206b, 206c, 206d, …, 206N). State information (e.g., stateless, stateful) of the identified or selected first layer and second layer is maintained and included in the new container image 210. The new container image includes a targeted portion of the first set of container layers and the second set of container layers.
[0017] A dynamic state configuration layer 212 may be configured to toggle the state information of the first layer or the second layer within the new container image. In some aspects, the dynamic state configuration layer 212 may be configured to toggle the state information of the first layer or the second layer based on predefined rules or real-time analytics. In some aspects, the dynamic state configuration layer may be configured to toggle the state information of the first layer or the second layer during a runtime operation. In some aspects, the dynamic state configuration layer may be configured to manage data synchronization between a plurality of layers (e.g., first layer and second layer of new container image 212, or container image 204, 206). In some aspects, the dynamic state configuration layer may be configured to perform layer-based analysis to determine whether the state of the first layer or the second layer within the new container image is set at a desired state for specific scenarios.
[0018] The dynamic state configuration layer may be an intelligent layer within the new container layer that may automatically toggle the state of container layers of interest between stateful and stateless based on predefined rules or real-time analytics. In some aspects, data volumes may be dynamically attached or detached to containers based on the operational requirements and workload characteristics, while targeting elements (e.g., one or more layers) of the container rather than the entire container. Data handling strategies can be included within the dynamic state configuration layer that manage data synchronization between a plurality of layers or indeed containers in an orchestration perspective, ensuring data integrity and enhanced data management strategies. In some aspects, the dynamic state configuration layer is configured to perform layer-based data snapshots and effectively integrate a snapshot mechanism at key points in the lifecycle to ensure the stateful approach is tailored towards specific scenarios that snapshot rules would govern. The dynamic state configuration layer may enable or disable the stateful or stateless configuration of the new container image. A layer having a stateful configuration is configured to maintain their state such as on a server and may retrieve the information stored on the server in the event of an interruption or loss of data. A layer having a stateless configuration does not retain information related to past transactions.
[0019] A specification file 208 may include configurable profiles that include state information for different applications. For example, the specification file may include configurable profiles that include state requirements for the layers within the new container image for different application scenarios. The states for the layers within the new container image may be applied or configured dynamically during application scaling or system migration which provides adaptability at runtime. For example, in instances of scaling up or down deployment of multiple container images, the scaling may use a stateless approach when maintaining the state is not needed, such that the dynamic state configuration layer may toggle all the layers into a stateless configuration. In another example, if migrating from a first system to a second system, a stateful configuration may be utilized in order to store the status of the runtime environment and is to be replicated on the second system. In some aspects, such as when mounting a volume to a container, a particular layer within the container using the mounted volume may be configured with a stateful configuration to maintain the state of the running container.
[0020] In some aspects, to obtain the specification file 208 the processing device 104 may obtain the specification file from within the computing device 102 (e.g., stored within memory 106), or may be obtained from a location that is remote from the computing device 102. In some aspects, the processing device may generate the specification file. The processing device may generate the specification file based on the container image instructions 202.
[0021] The diagram 200 of FIG. 2 is an example of a two container image configuration. However, the disclosure is not intended to be limited to a two container image configuration. In some aspects, a plurality of container images may be utilized. In the example of diagram 200 of FIG. 2, the container image 204 may include layers that are in a stateful configuration (e.g., Layer2 204b, Layer4 204d), while the container image 206 may include layers that are in a stateless configuration (e.g., Layer2 206b, Layer4 206d). A volume may be mounted to both container images 204, 206, but since the volume is mounted on different container images, and data may be shared between the different container images, such that the data associated with Layer2 204b, Layer4 204d from container image 204 may be shared with the container image 206. The layers (e.g., Layer2 204b, Layer4 204d) from container image 204 may be in a stateful configuration to allow for the sharing of data with the container image 206. The information related to the state of the layers may be stored within the volume and provided to the specification file 208, which may be utilized in the generation of the new container image. The new container image may include a combination of layers from the container image 204 and 206 and will include the stateful redemption from the layers that have been stored.
[0022] FIG. 3 is a block diagram 300 that illustrates an example system in accordance with some aspects of the present disclosure. The system includes a computing device 302. The computing device 302 includes a processing device 304 and a memory 306. The processing device is operatively coupled to the memory 306.
[0023] The processing device 304 is to identify a first layer 310 from a first set of container layers 308 and a second layer 314 from a second set of container layers 312 for combination. The processing device 304 is to obtain a specification file 316 including stateful information 318 or stateless information 320 for the first layer 310 and the second layer 314 identified for the combination. The processing device 304 is to generate a new container image 322 including the combination of the first layer 310 and the second layer 314 based on the specification file 316. The new container image 322 includes state retention information 324 related to the stateful information 318 or the stateless information 320 associated with the first layer 310 and the second layer 314.
[0024] FIG. 4 is a flow diagram of a method 400 for stateful or stateless container layer management in accordance with some aspects of the present disclosure. The method 400 may be performed by processing logic that may comprise hardware (e.g., circuitry, dedicated logic, programmable logic, a processor, a processing device, a central processing unit (CPU), a system-on-chip (SoC), etc.), software (e.g., instructions running / executing on a processing device), firmware (e.g., microcode), or a combination thereof. In some aspects, the method 400 may be performed by a computing device (e.g., computing device 102 in FIGS. 1 and 2, a computing device 302 in FIG. 3, the computer system 500 in FIG. 5, etc.).
[0025] At block 402, a processing device identifies a first layer from a first set of container layers and a second layer from a second set of container layers for combination. For example, the first layer and second layer identified for combination may be or include first layer 310 and second layer 314.
[0026] At block 404, the processing device obtains a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination. For example, the specification file may be or include specification file 316, and the first layer and the second layer identified for the combination may be or include first layer 310 and second layer 314.
[0027] At block 406, the processing device generates a new container image including the combination of the first layer and the second layer based on the specification file, the new container image including state retention information related to the stateful information or the stateless information associated with the first layer and the second layer. For example, the new container image may be or include new container image 322, and state retention information may be or include state retention information 324.
[0028] In some aspects, the processing device may obtain the specification file from within the computing device 302. In some aspects, the processing device may obtain the specification file from a location that is remote from the computing device 302.
[0029] FIG. 5 illustrates a diagrammatic representation of a machine in the example form of a computer system 500 within which a set of instructions, for causing the machine to perform any one or more of the methodologies discussed herein for insertion of guardian layers in container images for secure layer importing. More specifically, the machine may identify a first layer from a first set of container layers and a second layer from a second set of container layers for combination; obtain a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination; and generate, by a processing device, a new container image including the combination of the first layer and the second layer based on the specification file, the new container image including state retention information related to the stateful information or the stateless information associated with the first layer and the second layer.
[0030] In alternative aspects, the machine may be connected (e.g., networked) to other machines in a local area network (LAN), an intranet, an extranet, or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a web appliance, a server, a network router, a switch or a bridge, a hub, an access point, a network access control device, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein. In one aspect, the computer system 500 may be representative of a server.
[0031] The computer system 500 includes a processing device 502, a main memory 504 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), a static memory 506 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 518, which communicate with each other via a bus 530. Any of the signals provided over various buses described herein may be time multiplexed with other signals and provided over one or more common buses. Additionally, the interconnection between circuit components or blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be one or more single signal lines and each of the single signal lines may alternatively be buses.
[0032] The computer system 500 may further include a network interface device 508 which may communicate with a network 520. The computer system 500 also may include a video display unit 510 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), an alphanumeric input device 512 (e.g., a keyboard), a cursor control device 514 (e.g., a mouse), and a signal generation device 515 (e.g., a speaker). In one example, the video display unit 510, the alphanumeric input device 512, and the cursor control device 514 may be combined into a single component or device (e.g., an LCD touch screen).
[0033] The processing device 502 represents one or more general-purpose processing devices such as a microprocessor, a central processing unit, or the like. More particularly, the processing device 502 may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computer (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets, or processors implementing a combination of instruction sets. The processing device 502 may also be one or more special-purpose processing devices such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, or the like. The processing device 502 is configured with combination instructions 525, for performing the operations and steps discussed herein. For example, the combination instructions 525 may include instructions for stateful or stateless container layer management.
[0034] The data storage device 518 may include a machine-readable storage medium 528 storing combination instructions 525 (e.g., software) embodying any one or more of the methodologies of functions described herein. The combination instructions 525 may also reside, completely or partially, within the main memory 504 or within the processing device 502 during execution thereof by the computer system 500; the main memory 504 and the processing device 502 also constituting machine-readable storage media. The combination instructions 525 may further be transmitted or received over the network 520 via the network interface device 508.
[0035] The machine-readable storage medium 528 may also be used to store the combination instructions 525 to perform a method for insertion of guardian layers in container images for secure layer importing, as described herein. While the machine-readable storage medium 528 is shown in an exemplary aspect to be a single medium, the term “machine-readable storage medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, or associated caches and servers) that store the one or more sets of instructions. A machine-readable storage medium includes any mechanism for storing information in a form (e.g., software, processing application) readable by a machine (e.g., a computer). The machine-readable storage medium may include, but is not limited to, a magnetic storage medium (e.g., floppy diskette), an optical storage medium (e.g., CD-ROM), a magneto-optical storage medium, a read-only memory (ROM), random-access memory (RAM), erasable programmable memory (e.g., EPROM and EEPROM), flash memory, or another type of medium suitable for storing electronic instructions.
[0036] The preceding description sets forth numerous specific details such as examples of specific systems, components, methods, and so forth, in order to provide a good understanding of several aspects of the present disclosure. It will be apparent to one skilled in the art, however, that at least some aspects of the present disclosure may be practiced without these specific details. In other instances, well-known components or methods are not described in detail or are presented in simple block diagram format in order to avoid unnecessarily obscuring the present disclosure. Thus, the specific details set forth are merely exemplary. Particular aspects may vary from these exemplary details and still be contemplated to be within the scope of the present disclosure.
[0037] Additionally, some aspects may be practiced in distributed computing environments where the machine-readable medium is stored on and or executed by more than one computer system. In addition, the information transferred between computer systems may either be pulled or pushed across the communication medium connecting the computer systems.
[0038] Aspects of the claimed subject matter include, but are not limited to, various operations described herein. These operations may be performed by hardware components, software, firmware, or a combination thereof.
[0039] Although the operations of the methods herein are shown and described in a particular order, the order of the operations of each method may be altered so that certain operations may be performed in an inverse order or so that certain operation may be performed, at least in part, concurrently with other operations. In another aspect, instructions or sub-operations of distinct operations may be in an intermittent or alternating manner.
[0040] The above description of illustrated implementations of the invention, including what is described in the Abstract, is not intended to be exhaustive or to limit the invention to the precise forms disclosed. While specific implementations of, and examples for, the invention are described herein for illustrative purposes, various equivalent modifications are possible within the scope of the invention, as those skilled in the relevant art will recognize. The words “example” or “exemplary” are used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “example” or “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects or designs. Rather, use of the words “example” or “exemplary” is intended to present concepts in a concrete fashion. As used in this application, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or”. That is, unless specified otherwise, or clear from context, “X includes A or B” is intended to mean any of the natural inclusive permutations. That is, if X includes A; X includes B; or X includes both A and B, then “X includes A or B” is satisfied under any of the foregoing instances. In addition, the articles “a” and “an” as used in this application and the appended claims should generally be construed to mean “one or more” unless specified otherwise or clear from context to be directed to a singular form. Moreover, use of the term “an aspect” or “one aspect” or “an implementation” or “one implementation” throughout is not intended to mean the same aspect or implementation unless described as such. Furthermore, the terms “first,”“second,”“third,”“fourth,” etc. as used herein are meant as labels to distinguish among different elements and may not necessarily have an ordinal meaning according to their numerical designation. Unless specifically stated otherwise, terms such as “receiving,”“detecting,”“inserting,”“building,”“selecting,” or the like, refer to actions and processes performed or implemented by computing devices that manipulates and transforms data represented as physical (electronic) quantities within the computing device's registers and memories into other data similarly represented as physical quantities within the computing device memories or registers or other such information storage, transmission or display devices.
[0041] It will be appreciated that variants of the above-disclosed and other features and functions, or alternatives thereof, may be combined into may other different systems or applications. Various presently unforeseen or unanticipated alternatives, modifications, variations, or improvements therein may be subsequently made by those skilled in the art which are also intended to be encompassed by the following claims. The claims may encompass aspects in hardware, software, or a combination thereof.
Claims
1. A method, comprising:identifying a first layer from a first set of container layers and a second layer from a second set of container layers for combination;obtaining a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination; andgenerating, by a processing device, a new container image including the combination of the first layer and the second layer based on the specification file, the new container image including state retention information related to the stateful information or the stateless information associated with the first layer and the second layer.
2. The method of claim 1, wherein the new container image includes a dynamic state configuration layer configured to toggle a state of the first layer or the second layer within the new container image between a stateful state or a stateless state.
3. The method of claim 2, wherein the dynamic state configuration layer configured to toggle the state between the stateful state or the stateless state based on predefined rules or real-time analytics.
4. The method of claim 3, wherein the dynamic state configuration layer configured to toggle the state between the stateful state or the stateless state during a runtime operation.
5. The method of claim 2, wherein the dynamic state configuration layer configured to manage data synchronization between a plurality of layers or containers.
6. The method of claim 2, wherein the dynamic state configuration layer configured to perform layer-based analysis to determine whether the state of the first layer or the second layer within the new container image is set at a desired state for specific scenarios.
7. The method of claim 1, wherein the new container image includes a targeted portion of the first set of container layers and the second set of container layers.
8. The method of claim 1, wherein the specification file includes configurable profiles that include state information for different applications.
9. A system, comprising:a memory; anda processing device, operatively coupled to the memory, to:identify a first layer from a first set of container layers and a second layer from a second set of container layers for combination;generate a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination; andgenerate, by a processing device, a new container image including the combination of the first layer and the second layer based on the specification file, the new container image including state retention information related to the stateful information or the stateless information associated with the first layer and the second layer.
10. The met system hod of claim 9, wherein the new container image includes a dynamic state configuration layer configured to toggle a state of the first layer or the second layer within the new container image between a stateful state or a stateless state.
11. The system of claim 10, wherein the dynamic state configuration layer configured to toggle the state between the stateful state or the stateless state based on predefined rules or real-time analytics.
12. The system of claim 11, wherein the dynamic state configuration layer configured to toggle the state between the stateful state or the stateless state during a runtime operation.
13. The system of claim 10, wherein the dynamic state configuration layer configured to manage data synchronization between a plurality of layers or containers.
14. The system of claim 10, wherein the dynamic state configuration layer configured to perform layer-based analysis to determine whether the state of the first layer or the second layer within the new container image is set at a desired state for specific scenarios.
15. The system of claim 9, wherein the new container image includes a targeted portion of the first set of container layers and the second set of container layers.
16. The system of claim 9, wherein the specification file includes configurable profiles that include state information for different applications.
17. A non-transitory computer-readable medium having instructions stored thereon which, when executed by a processing device, cause the processing device to:identify a first layer from a first set of container layers and a second layer from a second set of container layers for combination;generate a specification file including stateful information or stateless information for the first layer and the second layer identified for the combination; andgenerate, by a processing device, a new container image including the combination of the first layer and the second layer based on the specification file, the new container image including state retention information related to the stateful information or the stateless information associated with the first layer and the second layer.
18. The non-transitory computer-readable medium of claim 17, wherein the new container image includes a dynamic state configuration layer configured to toggle a state of the first layer or the second layer within the new container image between a stateful state or a stateless state.
19. The non-transitory computer-readable medium of claim 18, wherein the dynamic state configuration layer configured to toggle the state between the stateful state or the stateless state based on predefined rules or real-time analytics.
20. The non-transitory computer-readable medium of claim 17, wherein the dynamic state configuration layer configured to perform layer-based analysis to determine whether the state of the first layer or the second layer within the new container image is set at a desired state for specific scenarios.
