Method, device and equipment for container mirror image construction, and storage medium
A construction method and container technology, which is applied in the computer field, can solve the problem of large space occupied by container images, achieve the effects of reduced size, reduced attack surface, and saved storage space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] refer to figure 1 , this embodiment provides a method for building a container image, including:
[0056] Step S101, receiving a Dockerfile creation instruction, and creating a first Dockerfile according to the Dockerfile creation instruction;
[0057] Step S102, receiving a merging instruction, and merging the running instructions in the first Dockerfile according to the merging instruction;
[0058]Step S103, creating a first container image according to the merged first Dockerfile of the running instructions;
[0059] Step S104, creating a first container according to the first container image;
[0060] Step S105, control to enter the container environment of the first container;
[0061] Step S106, obtaining configuration files and dependent files from the container environment of the first container, and forming compressed files;
[0062] Step S107, controlling to exit the container environment of the first container;
[0063] Step S108, modifying the first Do...
Embodiment 2
[0088] refer to figure 2 , this embodiment provides a device for building a container image, including:
[0089] The creation module 201 is configured to receive a Dockerfile creation instruction, and create a first Dockerfile according to the Dockerfile creation instruction;
[0090] The merging module 202 is configured to receive a merging instruction, and merge the operation instructions in the first Dockerfile according to the merging instruction;
[0091] The first container image creation module 203 is configured to create the first container image according to the merged first Dockerfile of the running instructions;
[0092] A first container creation module 204, configured to create a first container according to the first container image;
[0093] An environment control module 205, configured to control access to the container environment of the first container;
[0094] A file obtaining module 206, configured to obtain configuration files and dependent files from...
Embodiment 3
[0108] refer to image 3, this embodiment provides a container image building device 300, including a processor 301 and a memory 302 connected to the processor 301, the memory 302 stores a plurality of instructions, and the instructions can be loaded and executed by the processor 301, so that The processor can execute the method for building a container image as described in Embodiment 1.
[0109] In addition, this embodiment also provides a storage medium, the storage medium stores a plurality of instructions, and the instructions can be loaded and executed by the processor so that the processor can execute the container image as described in the first embodiment. build method.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com