CN108563461A - A kind of method, apparatus and system for extracting configuration file from mirror image - Google Patents
A kind of method, apparatus and system for extracting configuration file from mirror image Download PDFInfo
- Publication number
- CN108563461A CN108563461A CN201810231401.6A CN201810231401A CN108563461A CN 108563461 A CN108563461 A CN 108563461A CN 201810231401 A CN201810231401 A CN 201810231401A CN 108563461 A CN108563461 A CN 108563461A
- Authority
- CN
- China
- Prior art keywords
- mirror image
- configuration file
- version
- container
- sent
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses a kind of from mirror image extracts the method, apparatus and system of configuration file, to improve the accuracy and efficiency of configuration current service.A kind of method for extracting configuration file from mirror image provided by the present application, including:Determine the selected mirror image of subscription client and the version of the mirror image;Extraction document request is sent to the device for being equipped with container engine so that described device extracts configuration file from the corresponding container of the mirror image of the version, and the configuration file is used to configure the service that the corresponding container of the mirror image based on the version is established;The configuration file that described device is sent is received, and the configuration file is sent to the subscription client.
Description
Technical field
This application involves container technical field more particularly to it is a kind of from mirror image extract configuration file method, apparatus and
System.
Background technology
Currently, when creating service using container, the mirror image for selecting to provide service from mirror site is needed, it is also necessary to which setting should
The basic configuration information (manifest) of service, for example, specify the port of the service correspondence with foreign country, required occupancy system resource,
Starting the configuration informations such as order, these basic configuration informations are generally obtained by the interface for mirror site offer of increasing income, but in portion
It when administration's service, often also needs to specify some specific configuration informations to service according to service content, for example, in configuration authentication clothes
When business, setting is needed to service the connected addresses MySQL, the addresses Redis etc., these specific configuration informations are generally by being stored in
The configuration file provided in the mirror image of service provides.
And in the prior art, mirror image itself or mirror site of increasing income are not supported directly to carry from the mirror image for providing service
Configuration file is taken, it is outer using this when container starts therefore, it is necessary to upload the good configuration file of a manual modification from outside
The configuration file for the configuration file covering acquiescence that portion uploads, the mode of this configuration are easy error, and less efficient.
Invention content
The embodiment of the present application provides a kind of method, apparatus and system for extracting configuration file from mirror image, to improve
Configure the accuracy and efficiency of service.
The embodiment of the present application provides a kind of method for extracting configuration file from mirror image, and this method includes:
Determine the selected mirror image of subscription client and the version of the mirror image;
Extraction document request is sent to the device for being equipped with container engine so that the mirror of the described device from the version
As extracting configuration file in corresponding container, the configuration file is for configuring the corresponding appearance of the mirror image based on the version
The service that device is established;
The configuration file that described device is sent is received, and the configuration file is sent to the subscription client.
The above method provided by the embodiments of the present application, by the version for determining the selected mirror image of subscription client and the mirror image
This, then configuration file is extracted from the corresponding container of mirror image of the version, the configuration file is sent to subscription client, is used
In the service that the corresponding container of mirror image of the configuration based on the version is established, since the configuration file is from based on subscription client
It is extracted in the container that selected mirror image is established, to improve the accuracy and efficiency of configuration service.
Optionally, the above method provided by the embodiments of the present application is determined when first time described in the subscription client selection
When the mirror image of version, this method further includes:It is sent to described device and creates container order, described device is made to create the version
This corresponding container of the mirror image.
The above method provided by the embodiments of the present application, by the mirror image and the mirror that determine subscription client selection in first time
When the version of picture, sends and create container order to the device equipped with container engine, described device is made to be created using the mirror image of the version
The corresponding container of mirror image of the version is built, to which described device directly can extract configuration file from the mirror image of the version, into
And improve the accuracy of configuration current service.
Optionally, the above method provided by the embodiments of the present application is arranged after the completion of the container creates to the container
Container identification;
By the mirror image of the version, the corresponding container of the mirror image of the version and the container identification of the container
Correspondence, preserve in mapping table.
The above method provided by the embodiments of the present application, by the way that after the completion of container creates, container identification is arranged to container, and
By mirror image, the correspondence between the corresponding container of the mirror image and the container identification of the container is preserved into mapping table, from
And when subscription client selects mirror image, the corresponding container of the mirror image can be determined according to mapping table, and from the container
Configuration file is extracted, ensure that the uniqueness and accuracy of configuration file.
Optionally, the above method provided by the embodiments of the present application, it is described to send extraction to the device for being equipped with container engine
File request specifically includes:
According to the selected mirror image of the subscription client and the version of the mirror image, institute is inquired in the mapping table
State the corresponding container of the mirror image and the corresponding container identification of the container of version;
Determine that the state of the container is to have created state;
It will be sent to described device comprising the request of the extraction document of the corresponding container identification of the container.
The above method provided by the embodiments of the present application, in the version for determining the selected mirror image of subscription client and the mirror image
Afterwards, by determine the version the corresponding container identification of mirror image and the container state be created state, avoid configuration file because
It changes for container operation, then the extraction document request of the container identification comprising the container is sent to equipped with container engine
Device is to extract configuration file, to ensure that the uniqueness and accuracy of configuration file.
Optionally, the configuration file is sent to subscription client, specifically by the above method provided by the embodiments of the present application
Including:
The configuration file is decoded as text formatting;
It will be encapsulated as json formats for the configuration file of text formatting;
It will be sent to subscription client for the configuration file of json formats.
The above method provided by the embodiments of the present application, by the way that configuration file is decoded as text formatting, then by text formatting
Configuration file be encapsulated as json formats and be sent to subscription client, so that subscription client can be directly read in configuration file
Configuration information service is configured, improve configuration current service accuracy and efficiency.
The embodiment of the present application provides a kind of method for extracting configuration file from mirror image, and this method includes:
Receive the extraction document request that configuration file extraction element is sent;
It is asked to determine the selected mirror image of subscription client and the version of the mirror image according to the extraction document, from the version
Configuration file is extracted in this corresponding container of the mirror image, the configuration file is for configuring the mirror based on the version
The service established as corresponding container;
The configuration file is sent to the configuration file extraction element.
The above method provided by the embodiments of the present application is asked by receiving the extraction document that configuration file extraction element is sent
It asks, asks to determine the selected mirror image of subscription client and the version of the mirror image further according to extraction document, from the mirror image of the version
Configuration file is extracted in corresponding container, then configuration file is sent to configuration file extraction element, due to the configuration file
It is extracted from the selected mirror image of subscription client, to improve the accuracy and efficiency of configuration current service.
Optionally, the above method provided by the embodiments of the present application is determined when first time described in the subscription client selection
When the mirror image of version, this method further includes:The establishment container order that the configuration file extraction element is sent is received, is created
The corresponding container of the mirror image of the version.
The above method provided by the embodiments of the present application, by the mirror image and the mirror that determine subscription client selection in first time
When the version of picture, the establishment container order that configuration file extraction element is sent is received, the version is created using the mirror image of the version
The corresponding container of mirror image, so as to directly extract configuration file from the mirror image of the version, and then improve the current clothes of configuration
The accuracy of business.
Optionally, the above method provided by the embodiments of the present application, the corresponding appearance of the mirror image for creating the version
Device specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
Wherein, the container includes the corresponding configuration file of the mirror image of the version.
The above method provided by the embodiments of the present application is created by using the mirror image of the selected version of subscription client
Corresponding container is matched so as to directly extract the configuration file being stored in the mirror image of the version using the configuration file
Current service is set, to improve the accuracy and efficiency of configuration current service.
Optionally, the above method provided by the embodiments of the present application creates the corresponding container of the mirror image of the version, also
Including:It is set as the state of the corresponding container of the mirror image of the version created to have created state.
The above method provided by the embodiments of the present application, by by the state of the corresponding container of the mirror image of the version created
It is set as having created state, while reducing occupying system resources, configuration file is avoided to change because container is run, to
Ensure the accuracy of configuration file.
Optionally, the above method provided by the embodiments of the present application is carried from the corresponding container of the mirror image of the version
Configuration file is taken, is specifically included:
Receive the extraction document request that the configuration file extraction element is sent;
Container identification in being asked according to the extraction document, is extracted from the corresponding container of the mirror image of the version
Configuration file;
Wherein, the container identification is by the configuration file extraction element after the completion of container creates, to described
Container setting.
The above method provided by the embodiments of the present application is asked by using the extraction document that configuration file extraction element is sent
In include container identification, so as to accurately determine the version of the selected mirror image of subscription client and the mirror image, from this
Configuration file is extracted in the corresponding container of mirror image of version, improves the accuracy of configuration current service.
The embodiment of the present application provides a kind of device extracting configuration file from mirror image, which includes:
First unit, the version for determining the selected mirror image of subscription client and the mirror image;
Second unit, for sending extraction document request to the device for being equipped with container engine so that described device is from institute
It states and extracts configuration file in the corresponding container of the mirror image of version, the configuration file is for configuring the institute based on the version
State the service that the corresponding container of mirror image is established;
Third unit, the configuration file for receiving described device transmission, and the configuration file is sent to institute
State subscription client.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the device further include:Unit the 4th, for when for the first time
It when determining that the subscription client selects the mirror image of the version, is sent to described device and creates container order, made described
Device creates the corresponding container of the mirror image of the version.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, after the completion of the container creates, the second unit is given
Container identification is arranged in the container;
By the mirror image of the version, the corresponding container of the mirror image of the version and the container identification of the container
Correspondence, preserve in mapping table.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the second unit is to the device for being equipped with container engine
Extraction document request is sent, is specifically included:
According to the selected mirror image of the subscription client and the version of the mirror image, institute is inquired in the mapping table
State the corresponding container of the mirror image and the corresponding container identification of the container of version;
Determine that the state of the container is to have created state;
It will be sent to described device comprising the request of the extraction document of the corresponding container identification of the container.
Optionally, the configuration file is sent to use by above-mentioned apparatus provided by the embodiments of the present application, the first unit
Family client, specifically includes:
The configuration file is decoded as text formatting;
It will be encapsulated as json formats for the configuration file of text formatting;
It will be sent to subscription client for the configuration file of json formats.
The embodiment of the present application provides a kind of device extracting configuration file from mirror image, which includes:
Unit the 5th, the extraction document request for receiving the transmission of configuration file extraction element;
Unit the 6th determines the selected mirror image of subscription client and the mirror image for being asked according to the extraction document
Version, extracts configuration file from the corresponding container of the mirror image of the version, and the configuration file is based on institute for configuring
State the service that the corresponding container of the mirror image of version is established;
Unit the 7th, for the configuration file to be sent to the configuration file extraction element.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the device further include:Unit the 8th, for when for the first time
When determining that the subscription client selects the mirror image of the version, the establishment that the configuration file extraction element is sent is received
Container order creates the corresponding container of the mirror image of the version.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, Unit the 8th create the mirror image of the version
Corresponding container, specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
Wherein, the container includes the corresponding configuration file of the mirror image of the version.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, Unit the 8th create the mirror image of the version
Corresponding container further includes:It is set as the state of the corresponding container of the mirror image of the version created to have created state.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the mirror image pair of the Unit the 6th from the version
Configuration file is extracted in the container answered, is specifically included:
Receive the extraction document request that the configuration file extraction element is sent;
Container identification in being asked according to the extraction document, is extracted from the corresponding container of the mirror image of the version
Configuration file;
Wherein, the container identification is by the configuration file extraction element after the completion of container creates, to described
Container setting.
The embodiment of the present application provides a kind of system for extracting configuration file from mirror image, including any of the above-described dress
It sets.
Provided by the embodiments of the present application the third extracts the device of configuration file from mirror image, including:
Memory, for storing program instruction;
Processor is executed for calling the program instruction stored in the memory according to the program of acquisition:
Determine the selected mirror image of subscription client and the version of the mirror image;
Extraction document request is sent to the device for being equipped with container engine so that the mirror of the described device from the version
As extracting configuration file in corresponding container, the configuration file is for configuring the corresponding appearance of the mirror image based on the version
The service that device is established;
The configuration file that described device is sent is received, and the configuration file is sent to the subscription client.
Optionally, when first time determining that the subscription client selects the mirror image of the version, the processor
It is additionally operable to:It is sent to described device and creates container order, described device is made to create the corresponding container of the mirror image of the version.
Optionally, container identification is arranged to the container after the completion of container creates in the processor;
The processor is by the mirror image of the version, the corresponding container of the mirror image and the container of the version
Container identification correspondence, preserve in mapping table.
Optionally, described to send extraction document request to the device for being equipped with container engine, it specifically includes:
According to the selected mirror image of the subscription client and the version of the mirror image, institute is inquired in the mapping table
State the corresponding container of the mirror image and the corresponding container identification of the container of version;
Determine that the state of the container is to have created state;
It will be sent to described device comprising the request of the extraction document of the corresponding container identification of the container.
Optionally, the configuration file is sent to subscription client, specifically included:
The configuration file is decoded as text formatting;
It will be encapsulated as json formats for the configuration file of text formatting;
It will be sent to subscription client for the configuration file of json formats.
The embodiment of the present application provides the 4th kind of device that configuration file is extracted from mirror image, including:
Memory, for storing program instruction;
Processor is executed for calling the program instruction stored in the memory according to the program of acquisition:
Receive the extraction document request that configuration file extraction element is sent;
It is asked to determine the selected mirror image of subscription client and the version of the mirror image according to the extraction document, from the version
Configuration file is extracted in this corresponding container of the mirror image, the configuration file is for configuring the mirror based on the version
The service established as corresponding container;
The configuration file is sent to the configuration file extraction element.
Optionally, when first time determining that the subscription client selects the mirror image of the version, the processor is also
For:The establishment container order that the configuration file extraction element is sent is received, the mirror image for creating the version is corresponding
Container.
Optionally, the corresponding container of the mirror image for creating the version, specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
Wherein, the container includes the corresponding configuration file of the mirror image of the version.
Optionally, the corresponding container of the mirror image for creating the version further includes:By the institute of the version created
The state for stating the corresponding container of mirror image is set as having created state.
Optionally, configuration file is extracted from the corresponding container of the mirror image of the version, specifically included:
Receive the extraction document request that the configuration file extraction element is sent;
Container identification in being asked according to the extraction document, is extracted from the corresponding container of the mirror image of the version
Configuration file;
Wherein, the container identification is by the configuration file extraction element after the completion of container creates, to described
Container setting.
The embodiment of the present application provides a kind of computer readable storage medium, and the computer-readable recording medium storage has meter
Calculation machine instructs, when the computer instruction is run on computers so that computer executes any of the above-described method.
Description of the drawings
Fig. 1 is the structural schematic diagram of mirror image provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of system for extracting configuration file from mirror image provided by the embodiments of the present application;
Fig. 3 be it is provided by the embodiments of the present application it is a kind of from mirror image extract configuration file method flow diagram it
One;
Fig. 4 be it is provided by the embodiments of the present application it is a kind of from mirror image extract configuration file method flow diagram it
Two;
Fig. 5 be it is provided by the embodiments of the present application it is a kind of from mirror image extract configuration file method flow diagram it
Three;
Fig. 6 be another method that configuration file is extracted from mirror image provided by the embodiments of the present application flow diagram it
One;
Fig. 7 be another method that configuration file is extracted from mirror image provided by the embodiments of the present application flow diagram it
Two;
Fig. 8 be another method that configuration file is extracted from mirror image provided by the embodiments of the present application flow diagram it
Three;
Fig. 9 is a kind of structural schematic diagram of device extracting configuration file from mirror image provided by the embodiments of the present application;
Figure 10 is the structural schematic diagram of another device that configuration file is extracted from mirror image provided by the embodiments of the present application;
Figure 11 is a kind of structural schematic diagram of device extracting configuration file from mirror image provided by the embodiments of the present application;
Figure 12 is the structural schematic diagram of another device that configuration file is extracted from mirror image provided by the embodiments of the present application.
Specific implementation mode
In order to keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application make into
It is described in detail to one step, it is clear that the described embodiments are only a part but not all of the embodiments of the present application.
Based on the embodiment in the application, obtained by those of ordinary skill in the art without making creative efforts all
Other embodiments shall fall in the protection scope of this application.
In container engine (docker), container (container) can provide service, such as operation is answered in a reservoir
With, website etc. is run in a reservoir, and container is created based on mirror image (image).
As shown in Figure 1, mirror image 04 is made of multiple read only layer, the information stored in multiple read only layer includes:In system
Core (kernel) 041 provides the application installation package 042 of service, basic configuration information (manifest) 043 and configuration file 044
Deng.When creating service using container, need in mirror site after the mirror image of selection offer service, according to the content of service to clothes
Business configured, wherein basic configuration information 044, for example, may include environmental variance, serve port, start order and user,
The information such as journal format and carry, same storage, health examination, resource quota, basic configuration information can pass through 04 institute of mirror image
The interface that provides of mirror site directly acquire, and some specific configuration informations are then needed by being stored in matching in mirror image 04
The offer of file 044 is provided.But under normal conditions, do not support directly to extract configuration file from mirror image 04, it is therefore desirable to technology people
Member's manual modification configuration file.
As shown in Fig. 2, the embodiment of the present application provides a kind of method for extracting configuration file from mirror image, user is in user visitor
Mirror image and the version of the mirror image, configuration file extraction element 02 is selected to be selected by subscription client 01 according to user on family end 01
Mirror image and the mirror image version, send extraction document ask to docker devices (hereinafter referred to as " docker devices ") 03,
After docker devices 03 receive extraction document request, from the corresponding container of the mirror image for the version being stored in docker devices 03
Configuration file is extracted in 05, then configuration file is sent to configuration file extraction element 02, and configuration file extraction element 02 again will
Configuration file is sent to subscription client 01, to configure current service.
Wherein, the configuration file extraction element 02 can be for example a computer, have the function of communication, calculate etc.;
The docker devices 03 can be for example a computer or a server, be equipped with docker engines, can be in local
Or network-side storage container, and provide service using container.
In 02 side of configuration file extraction element, as shown in figure 3, the embodiment of the present application provides one kind extracting configuration from mirror image
The method of file, this method include:
S11,01 selected mirror image of subscription client and the version of the mirror image are determined;
S12, extraction document request is sent to being equipped with docker devices 03 so that docker devices 03 are from subscription client
Configuration file is extracted in the corresponding container of the mirror image of 01 selected version 05, configuration file is for configuring the mirror based on the version
The service established as corresponding container;
S13, the configuration file that docker devices 03 are sent is received, and configuration file is sent to subscription client 01.
Optionally, in the above method provided by the embodiments of the present application, configuration file extraction element 02 can for example pass through
Configuration file is sent to subscription client 01 by hypertext transfer protocol (HyperText Transfer Protocol, HTTP),
It is of course also possible to which configuration file is sent to subscription client 01 by other means, can specifically design according to actual needs,
It does not limit herein.
Optionally, in the above method provided by the embodiments of the present application, configuration file extraction element 02 can and docker
Device 03 is mounted in uniform machinery, can also be mounted in different machines.When configuration file extraction element 02 and docker fill
When setting to 03 in different machines, configuration file extraction element 02 can not be carried in locally-installed docker, i.e. configuration file
Take device 02 need not have docker environment, only need to call docker remote interfaces send order by way of and docker
Device 03 communicates so that docker devices 03 carry out container establishment and configuration file according to the order that file extraction element 02 is sent
The operations such as extraction, and without pulling in mirror image to configuration file extraction element 02, to save transmission time when configuration service
And broadband resource;Also, the container 05 created according to the mirror image of the 01 selected version of subscription client can also store
In docker devices 03, to reduce the occupancy to memory space.Specifically, it can design, not do herein according to actual needs
It limits.
The above method provided by the embodiments of the present application, it is corresponding by the mirror image from 01 selected version of subscription client
Configuration file is extracted in container, configuration file, which is sent to subscription client 01, configures current service, matches to improve
Set the accuracy and efficiency of current service.
Optionally, in the above method provided by the embodiments of the present application, determine that the selection of subscription client 01 should when first time
When the mirror image of version, this method further includes:Configuration file extraction element 02, which is sent, creates container order to docker devices 03, makes
Docker devices 03 create the corresponding container of mirror image of the version.
Mirror image is made of multiple read only layer, container include multiple read only layer and top layer it is writeable can read layer, based on should
Mirror image creates the corresponding container of the mirror image, then can read the information stored in mirror image by container.To implement in the application
In the above method that example provides, when mirror image by selecting the version for the first time in subscription client 01, sends and create container life
The corresponding container of the mirror image for making docker devices 03 create the version using the mirror image of the version to docker devices 03 is enabled, such as
Shown in Fig. 2, the container 05 for creating completion is stored in docker devices 03, to which docker devices can be directly from the version
The configuration file in the mirror image of the version is extracted in the corresponding container of mirror image, is eliminated manual modification configuration file and is passed to operation again
Operation in the container of service, and then improve the accuracy and efficiency of configuration current service.
Optionally, the above method provided by the embodiments of the present application is created in the corresponding container 05 of the mirror image of the version and is completed
Afterwards, container identification is arranged to the corresponding container 05 of mirror image of the version in configuration file extraction element 02;
By the correspondence of the container identification of the corresponding container of the mirror image of the mirror image of the version, the version and the container,
It preserves into mapping table, mapping table is stored in configuration file extraction element 02.
Optionally, in the above method provided by the embodiments of the present application, the container identification for example can be key-value
(key-value) key values and value values is arranged to container in form, a key value corresponds to a value value, to protect
The uniqueness of the correspondence of container identification and container is demonstrate,proved, and then ensure that based on the 01 selected version of subscription client
The uniqueness of configuration file in the container that mirror image creates, it is of course also possible to container identification be arranged by other means, as long as protecting
Demonstrate,prove the 01 selected version of subscription client the corresponding container of mirror image container identification uniqueness, be all it is feasible,
This is not limited.
By after the completion of container creates, configuration file extraction element 02 gives container to be arranged container identification, and by mirror image, should
Correspondence between the corresponding container of mirror image and the container identification of the container is preserved to pair in configuration file extraction element 02
It answers in relation table, thus when subscription client selects the version of mirror image and mirror image, the version can be determined according to mapping table
This corresponding container of mirror image, and configuration file is extracted from the container, it ensure that the uniqueness and accuracy of configuration file.
Optionally, as shown in figure 4, in the above method provided by the embodiments of the present application, configuration file extraction element 02 is true
After the version for determining the selected mirror image of subscription client and the mirror image, extraction document request is sent to docker devices 03, specifically
Including:
S41, according to the version of the selected mirror image of subscription client and the mirror image, the version is inquired in mapping table
The corresponding container of mirror image and the corresponding container identification of the container;
S42, determine that the state of the corresponding container of the mirror image of the version is to have created (created) state;
S43, the extraction document request of the container identification comprising the container is sent to docker devices 03.
Specifically, configuration file extraction element 02 first time determine subscription client 01 select the version mirror image after,
Docker devices 03 are made to create the corresponding container of mirror image of the version, container gives container setting containers labels after the completion of creating,
To which when non-first time determines that subscription client 01 selects the mirror image of the version, the version is determined by inquiring mapping table
The existing corresponding container of mirror image, then the container identification of the container is determined by mapping table, by the container of the container
Mark carries in extraction document request and is sent to docker devices 03 so that during docker devices 03 are asked according to extraction document
Container identification determine the 01 selected version of subscription client mirror image container, extract configuration file from the container.
Optionally, in the above method provided by the embodiments of the present application, the container mark of container is inquired in mapping table
The mode of knowledge can be a variety of inquiry modes, such as be looked into using the remote interface order (docker remote api) of docker
It askes, it is of course also possible to inquire by other means, specifically, can design according to actual needs, does not limit herein.
State (status) after container creates includes following several states:
State (created) is created, container has been created, but is not activated also;
Run mode (running), container is in operation;
Suspend state (paused), the process of container is suspended;
Restart state (restarting), the process of container is just in the reboot process;
Stop state (exited), indicates that container was run before but was now arranged in halted state, beginning can be passed through
(start) order makes the container in exited states reenter running states;
State (destroyed) is destroyed, container is deleted.
In the prior art, the state given tacit consent to after container is created is running states, and the container in running states, one
Aspect also needs to occupy central processing unit (Central Processing Unit, CPU) while occupying memory space resource
Resource, on the other hand, the parameter in the container in running states are dynamic, therefore the configurations in the container of running states
File is likely to occur change.
Therefore, optionally, in the above method provided by the embodiments of the present application, after container establishment, make docker devices
03 sets the state of container to created states, on the one hand, the container of created states only takes up memory space resource, is not required to account for
With cpu resource, on the other hand, the parameter in the container of created states is static, therefore matching in the container of created states
Setting file will not change.By determining that the mirror image of the version corresponds to container according to the mirror image of the selected version of user
Container identification, then determine the container state be created state, while reducing occupying system resources, avoid configuration file because
Change for container operation, then by the request of the extraction document of the container identification comprising the container be sent to docker devices 03 with
Configuration file is extracted, to ensure that the uniqueness and accuracy of configuration file.
Optionally, as shown in figure 5, the above method provided by the embodiments of the present application, configuration file extraction element 02 is by user
Configuration file in the corresponding container of mirror image of the 01 selected version of client is sent to subscription client 01, specific to wrap
It includes:
S51, configuration file in the corresponding container of mirror image of the 01 selected version of subscription client is decoded as text
Format;
S52, json formats will be encapsulated as the configuration file of text formatting;
S53, subscription client 01 will be sent to for the configuration file of json formats.
Optionally, in the above method provided by the embodiments of the present application, docker devices 03 can for example pass through file stream
(filestream) configuration file is sent to configuration file extraction element 02 by form, and file stream may include binary system text
This, configuration file extraction element 02 receives the configuration file for the file manifold formula that docker devices 03 are sent, by file manifold formula
Configuration file be decoded as text formatting, then the configuration file of text formatting is encapsulated as json formats and is sent to subscription client
01 so that subscription client 01 can directly read the configuration information in the configuration file of json formats, match to current service
It sets, to improve the accuracy and efficiency of configuration current service.
In 03 side of docker devices, as shown in fig. 6, the embodiment of the present application provides and a kind of extracting configuration file from mirror image
Method, this method include:
S61, the extraction document request that configuration file extraction element 02 is sent is received;
S62, it is asked to determine 01 selected mirror image of subscription client and the version of the mirror image according to extraction document, from the version
Configuration file is extracted in this corresponding container of mirror image, the configuration file is for configuring the corresponding appearance of mirror image based on the version
The service that device is established;
S63, configuration file is sent to configuration file extraction element 02.
Optionally, in the above method provided by the embodiments of the present application, docker devices 03 can for example pass through file stream
(filestream) configuration file is sent to configuration file extraction element 02 by form, naturally it is also possible to by other means will
Configuration file is sent to configuration file extraction element 02, can specifically design, not limit herein according to actual needs.
The above method provided by the embodiments of the present application is asked by receiving the extraction document that configuration file extraction element 02 is sent
It asks, asks to determine 01 selected mirror image of subscription client and the version of the mirror image, docker devices 03 further according to extraction document
Configuration file is extracted from the corresponding container of the mirror image of the version 05, then configuration file is sent to configuration file extraction element
02, since configuration file is extracted from the corresponding container of 01 selected mirror image of subscription client, work as to improve configuration
The accuracy and efficiency of preceding service.
Optionally, in the above method provided by the embodiments of the present application, determine that the selection of subscription client 01 should when first time
When the mirror image of version, this method further includes:Docker devices 03 receive the establishment container life that configuration file extraction element 02 is sent
It enables, creates the corresponding container of mirror image of the version.
Optionally, in the above method provided by the embodiments of the present application, when same mirror image has multiple versions, if user is objective
Family end 01 has selected the different editions of same mirror image, then needs the different editions according to same mirror image that different appearances is respectively created
Device a, for example, mirror image has 3 versions, subscription client 01 to select 3 versions of the mirror image to create service respectively, then needed
Make docker devices 03 that 3 containers be respectively created, i.e. a container corresponds to a version of a mirror image, by making an appearance
Device corresponds only to a version of a mirror image, to ensure that the uniqueness and accuracy of configuration file, configuration is avoided to malfunction.
Optionally, as shown in fig. 7, the above method provided by the embodiments of the present application, docker devices 03 create the version
The corresponding container of mirror image, specifically includes:
S71, the mirror image that the version is obtained from mirror site;
S72, the corresponding container of mirror image that the version is created using the mirror image of the version;
Wherein, the container includes the corresponding configuration file of mirror image of the version.
Optionally, in the above method provided by the embodiments of the present application, determine that the selection of subscription client 01 should when first time
When the mirror image of version, docker devices 03 obtain the mirror image of the version from mirror site, such as can be pulled by mirror image
(docker pull) orders the mirror image that the 01 selected version of subscription client is pulled from mirror site, by the mirror of the version
As copying in docker devices 03, the corresponding container of mirror image of the version, the container storage are created using the mirror image of the version
In docker devices 03, and retain the mirror image of the version in mirror site, is used for other services, it is of course also possible to pass through
Other modes pull mirror image, can specifically design, not limit herein according to actual needs.
Optionally, in the above method provided by the embodiments of the present application, mirror site can be mounted on docker devices 03
On uniform machinery, it can also be mounted on different machines with docker devices 03, when docker devices 03 are mounted on mirror site
In different machines, mirror image only need to be pulled by remote interface, is not limited herein.
The above method provided by the embodiments of the present application, by the mirror image for selecting the version for the first time in subscription client 01
When, the establishment container order that configuration file extraction element 02 is sent is received, the mirror image of the version is created using the mirror image of the version
Corresponding container is stored in docker devices 03 as shown in Fig. 2, creating the container 05 completed, to which docker devices 03 can
Directly to extract configuration file from the corresponding container of the mirror image of the version 05, avoids manual modification configuration file and be passed to fortune again
Operation in the container of row service, and then improve the accuracy and efficiency of configuration current service.
Optionally, the above method provided by the embodiments of the present application, the mirror image that docker devices 03 create the version are corresponding
Container further includes:The state of the corresponding container of the release image created is set to have created (created) state.
The above method provided by the embodiments of the present application, by by the state of the corresponding container of the mirror image of the version created
It is set as created states, on the one hand, the container of created states only takes up memory space resource, is not required to occupy cpu resource, another
Aspect, the parameter in the container of created states is static, therefore the configuration file in the container of created states will not occur
Change, while reducing occupying system resources, configuration file is avoided to change because container is run, to ensure that configuration
The accuracy of file.
Optionally, as shown in figure 8, in the above method provided by the embodiments of the present application, docker devices 03 are from the version
The corresponding container of mirror image in extract configuration file, specifically include:
S81, the extraction document request that configuration file extraction element 02 is sent is received;
S82, asked according to extraction document in container identification, from the mirror image corresponding container of the version extraction configuration text
Part;
Wherein, the container identification of the corresponding container of the mirror image of the version is created in container by configuration file extraction element 02
After the completion, to container setting.
The above method provided by the embodiments of the present application, by the extraction document for receiving the transmission of configuration file extraction element 02
After request, the container identification for including in being asked according to extraction document is selected so as to accurately determine subscription client
The mirror image corresponding container of version extracts configuration file in the corresponding container of mirror image of docker devices 03 from the version, then sends out
Configuration file extraction element 02 is given, configuration file is sent to subscription client 01 by configuration file extraction element 02, to
Improve the accuracy of configuration current service.
Based on same inventive concept, as shown in figure 9, the embodiment of the present application provides and a kind of extracting configuration file from mirror image
Device, the device include:
First unit 901, the version for determining the selected mirror image of subscription client and the mirror image;
Second unit 902, for sending extraction document request to docker devices 03 so that docker devices 03 are from the version
Configuration file is extracted in this corresponding container of mirror image, the configuration file is for configuring the corresponding appearance of mirror image based on the version
The service that device is established;
Third unit 903, the configuration file for receiving the transmission of docker devices 03, and configuration file is sent to described
Subscription client 01.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the device further include:Unit the 4th, for when for the first time
When determining that subscription client 01 selects the mirror image of the version, sends and create container order to docker devices 03, docker is made to fill
Set to 0 the corresponding container of mirror image of the 3 establishment versions.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, after the completion of the mirror image of the version corresponds to container and creates, the
Container identification is arranged to the container in two units 902;
By the correspondence of the container identification of the corresponding container of the mirror image of the mirror image of the version, the version and the container,
It preserves into mapping table.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, second unit 902 send extraction text to docker devices 03
Part is asked, and is specifically included:
According to 01 selected mirror image of subscription client and the version of the mirror image, the version is inquired in mapping table
The corresponding container of mirror image and the corresponding container identification of the container;
Determine that the state of the container is to have created state;
It will be sent to docker devices 03 comprising the request of the extraction document of the corresponding container identification of the container.
Optionally, configuration file is sent to user client by above-mentioned apparatus provided by the embodiments of the present application, first unit 901
End 01, specifically includes:
Configuration file is decoded as text formatting;
It will be encapsulated as json formats for the configuration file of text formatting;
It will be sent to subscription client 01 for the configuration file of json formats.
As shown in Figure 10, the embodiment of the present application provides a kind of device extracting configuration file from mirror image, which includes:
5th unit 1001, the extraction document request for receiving the transmission of configuration file extraction element 02;
6th unit 1002 determines 01 selected mirror image of subscription client and the mirror image for being asked according to extraction document
Version, extract configuration file from the corresponding container of mirror image of the version, configuration file is for configuring the mirror based on the version
The service established as corresponding container;
7th unit 1003, for configuration file to be sent to configuration file extraction element 02.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the device further include:Unit the 8th, for when for the first time
When determining that subscription client 01 selects the mirror image of the version, the establishment container order that configuration file extraction element 02 is sent is received,
Create the corresponding container of mirror image of the version.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, Unit the 8th create the corresponding container of mirror image of the version,
It specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
Wherein, the mirror image of the version corresponds to the corresponding configuration file of mirror image that container includes the version.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, Unit the 8th create the corresponding container of mirror image of the version,
Further include:It is set as the state of the corresponding container of the mirror image of the version created to have created state.
Optionally, above-mentioned apparatus provided by the embodiments of the present application, the corresponding appearance of mirror image of the 6th unit 1002 from the version
Configuration file is extracted in device, is specifically included:
Receive the extraction document request that configuration file extraction element 02 is sent;
Container identification in being asked according to extraction document extracts configuration file from the corresponding container of mirror image of the version;
Wherein, the container identification of the corresponding container of the mirror image of the version is created in the container by configuration file extraction element 02
After the completion of building, to container setting.
Based on same inventive concept, as shown in Fig. 2, the embodiment of the present application provides and a kind of extracting configuration file from mirror image
System, including any of the above-described configuration file extraction element 02, and/or, including any of the above-described docker devices
03, can also include at least one subscription client 01.
Based on same inventive concept, as shown in figure 11, the embodiment of the present application provides one kind and extracting configuration file from mirror image
Device, should from mirror image extract configuration file device be connected with subscription client 01, docker devices 03, including:
Memory 1101, for storing program instruction;
Processor 1102 executes following for calling the program instruction stored in the memory according to the program of acquisition
Process:
Processor 1102 determines the selected mirror image of subscription client and the version of the mirror image;
Processor 1102 sends extraction document request to the device for being equipped with container engine so that described device is from the version
Configuration file is extracted in this corresponding container of the mirror image, the configuration file is for configuring the mirror based on the version
The service established as corresponding container;
Processor 1102 receives the configuration file that described device is sent, and the configuration file is sent to the use
Family client.
Optionally, processor 1102 is additionally operable to determine that the subscription client selects the mirror of the version when first time
When picture, is sent to described device and create container order, described device is made to create the corresponding container of the mirror image of the version.
Optionally, after the completion of the container creates, container identification is arranged to the container in processor 1102;
By the mirror image of the version, the corresponding container of the mirror image of the version and the container identification of the container
Correspondence, preserve in mapping table.
Optionally, processor 1102 sends extraction document request to the device for being equipped with container engine, specifically includes:
According to the selected mirror image of the subscription client and the version of the mirror image, institute is inquired in the mapping table
State the corresponding container of the mirror image and the corresponding container identification of the container of version;
Determine that the state of the container is to have created state;
It will be sent to described device comprising the request of the extraction document of the corresponding container identification of the container.
Optionally, the configuration file is sent to subscription client by processor 1102, is specifically included:
The configuration file is decoded as text formatting;
It will be encapsulated as json formats for the configuration file of text formatting;
It will be sent to subscription client for the configuration file of json formats.
Wherein, in fig. 11, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor
The various circuits for the memory that 1102 one or more processors represented and memory 1101 represent link together.Total coil holder
Structure can also link together various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like, this
A little is all it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.Processor
1102 are responsible for bus architecture and common processing, and memory 1101 can store processor 1102 to be made when executing operation
Data.
Optionally, processor 1102 can be that centre buries device (CPU), application-specific integrated circuit (Application
Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate
Array, FPGA) or Complex Programmable Logic Devices (Complex Programmable Logic Device, CPLD).
Based on same inventive concept, as shown in figure 12, the embodiment of the present application provides one kind and extracting configuration file from mirror image
Device, should from mirror image extract configuration file device be connected with configuration file extraction element 02, including:
Memory 1201, for storing program instruction;
Processor 1202 executes following for calling the program instruction stored in the memory according to the program of acquisition
Process:
Processor 1202 receives the extraction document request that configuration file extraction element is sent;
Processor 1202 asks to determine the selected mirror image of subscription client and the version of the mirror image according to the extraction document
This extracts configuration file from the corresponding container of the mirror image of the version, and the configuration file is for configuring based on described
The service that the corresponding container of the mirror image of version is established;
The configuration file is sent to the configuration file extraction element by processor 1202.
Optionally, processor 1202 is additionally operable to determine that the subscription client selects the mirror of the version when first time
When picture, the establishment container order that the configuration file extraction element is sent is received, the mirror image for creating the version is corresponding
Container.
Optionally, processor 1202 creates the corresponding container of the mirror image of the version, specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
Wherein, the container includes the corresponding configuration file of the mirror image of the version.
Optionally, processor 1202 creates the corresponding container of the mirror image of the version, further includes:The institute that will have been created
The state for stating the corresponding container of the mirror image of version is set as having created state.
Optionally, processor 1202 extracts configuration file from the corresponding container of the mirror image of the version, specific to wrap
It includes:
Receive the extraction document request that the configuration file extraction element is sent;
Container identification in being asked according to the extraction document, is extracted from the corresponding container of the mirror image of the version
Configuration file;
Wherein, the container identification is by the configuration file extraction element after the completion of container creates, to described
Container setting.
Wherein, in fig. 12, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor
The various circuits for the memory that 1202 one or more processors represented and memory 1201 represent link together.Total coil holder
Structure can also link together various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like, this
A little is all it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.Processor
1202 are responsible for bus architecture and common processing, and memory 1201 can store processor 1202 to be made when executing operation
Data.
Optionally, processor 1202 can be that centre buries device (CPU), application-specific integrated circuit (Application
Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate
Array, FPGA) or Complex Programmable Logic Devices (Complex Programmable Logic Device, CPLD).
The embodiment of the present application provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage
Media storage has computer instruction, when the computer instruction is run on computers so that computer executes any of the above-described
The method.
The computer storage media can be any usable medium or data storage device that computer can access, packet
Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD,
BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid
State hard disk (SSD)) etc..
In conclusion the above-mentioned device for extracting configuration file from mirror image provided by the embodiments of the present application, is used by determining
The version of the selected mirror image of family client and the mirror image extracts configuration file from the corresponding container of mirror image of the version, will
Configuration file is sent to subscription client, the service established for configuring the corresponding container of mirror image based on the version, by institute
Configuration file is stated to extract from the selected mirror image of subscription client, to improve configuration current service accuracy and
Efficiency.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, those skilled in the art can carry out the application essence of the various modification and variations without departing from the application
God and range.In this way, if these modifications and variations of the application belong to the range of the application claim and its equivalent technologies
Within, then the application is also intended to include these modifications and variations.
Claims (19)
1. a kind of method for extracting configuration file from mirror image, which is characterized in that this method includes:
Determine the selected mirror image of subscription client and the version of the mirror image;
Extraction document request is sent to the device for being equipped with container engine so that the mirror image pair of the described device from the version
Configuration file is extracted in the container answered, the configuration file is built for configuring the corresponding container of the mirror image based on the version
Vertical service;
The configuration file that described device is sent is received, and the configuration file is sent to the subscription client.
2. the method as described in claim 1, which is characterized in that determine that the subscription client selects the version when first time
The mirror image when, this method further includes:It is sent to described device and creates container order, described device is made to create the version
The corresponding container of the mirror image.
3. method as claimed in claim 2, which is characterized in that after the completion of the container creates, hold to container setting
Device identifies;
By pair of the container identification of the mirror image of the version, the corresponding container of the mirror image of the version and the container
It should be related to, preserve into mapping table.
4. method as claimed in claim 3, which is characterized in that described to send extraction document to the device for being equipped with container engine
Request, specifically includes:
According to the selected mirror image of the subscription client and the version of the mirror image, the version is inquired in the mapping table
This corresponding container of the mirror image and the corresponding container identification of the container;
Determine that the state of the container is to have created state;
It will be sent to described device comprising the request of the extraction document of the corresponding container identification of the container.
5. the method as described in claim 1, which is characterized in that the configuration file is sent to subscription client, it is specific to wrap
It includes:
The configuration file is decoded as text formatting;
It will be encapsulated as json formats for the configuration file of text formatting;
It will be sent to subscription client for the configuration file of json formats.
6. a kind of method for extracting configuration file from mirror image, which is characterized in that this method includes:
Receive the extraction document request that configuration file extraction element is sent;
It is asked to determine the selected mirror image of subscription client and the version of the mirror image according to the extraction document, from the version
Configuration file is extracted in the corresponding container of the mirror image, the configuration file is for configuring the mirror image pair based on the version
The service that the container answered is established;
The configuration file is sent to the configuration file extraction element.
7. method as claimed in claim 6, which is characterized in that determine that the subscription client selects the version when first time
The mirror image when, this method further includes:The establishment container order that the configuration file extraction element is sent is received, described in establishment
The corresponding container of the mirror image of version.
8. the method for claim 7, which is characterized in that the corresponding container of the mirror image for creating the version,
It specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
Wherein, the container includes the corresponding configuration file of the mirror image of the version.
9. method as claimed in claim 8, which is characterized in that the corresponding container of the mirror image for creating the version also wraps
It includes:It is set as the state of the corresponding container of the mirror image of the version created to have created state.
10. method as claimed in claim 9, which is characterized in that extracted from the corresponding container of the mirror image of the version
Configuration file specifically includes:
Receive the extraction document request that the configuration file extraction element is sent;
Container identification in being asked according to the extraction document extracts configuration from the corresponding container of the mirror image of the version
File;
Wherein, the container identification is to give the container by the configuration file extraction element after the completion of container creates
It is arranged.
11. a kind of device extracting configuration file from mirror image, which is characterized in that the device includes:
First unit, the version for determining the selected mirror image of subscription client and the mirror image;
Second unit, for sending extraction document request to the device for being equipped with container engine so that described device is from the version
Configuration file is extracted in this corresponding container of the mirror image, the configuration file is for configuring the mirror based on the version
The service established as corresponding container;
Third unit, the configuration file for receiving described device transmission, and the configuration file is sent to the use
Family client.
12. device as claimed in claim 11, which is characterized in that the device further includes:Unit the 4th, for true when for the first time
When the fixed subscription client selects the mirror image of the version, is sent to described device and create container order, make the dress
Set the corresponding container of the mirror image for creating the version.
13. a kind of device extracting configuration file from mirror image, which is characterized in that the device includes:
Unit the 5th, the extraction document request for receiving the transmission of configuration file extraction element;
Unit the 6th determines the selected mirror image of subscription client and the version of the mirror image for being asked according to the extraction document
This extracts configuration file from the corresponding container of the mirror image of the version, and the configuration file is for configuring based on described
The service that the corresponding container of the mirror image of version is established;
Unit the 7th, for the configuration file to be sent to the configuration file extraction element.
14. device as claimed in claim 13, which is characterized in that the device further includes:Unit the 8th, for true when for the first time
When the fixed subscription client selects the mirror image of the version, receives the establishment that the configuration file extraction element is sent and hold
Device order creates the corresponding container of the mirror image of the version.
15. device as claimed in claim 14, which is characterized in that Unit the 8th creates the mirror image pair of the version
The container answered, specifically includes:
The mirror image of the version is obtained from mirror site;
The corresponding container of the mirror image is created using the mirror image of the version;
It is set as the state of the corresponding container of the mirror image of the version created to have created state;
Wherein, the container includes the corresponding configuration file of the mirror image of the version.
16. a kind of system for extracting configuration file from mirror image, which is characterized in that including the dress described in claim 11 or 12
It sets, and/or, any device of claim 13~15.
17. a kind of device extracting configuration file from mirror image, which is characterized in that including:
Memory, for storing program instruction;
Processor is required according to the program execution profit of acquisition in 1-5 for calling the program instruction stored in the memory
Any one of them method.
18. a kind of device extracting configuration file from mirror image, which is characterized in that including:
Memory, for storing program instruction;
Processor requires 6-10 for calling the program instruction stored in the memory according to the program execution profit of acquisition
Any one of described in method.
19. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to
It enabling, when the computer instruction is run on computers so that computer perform claim requires 1~5 any method,
And/or any method of claim 6~10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810231401.6A CN108563461A (en) | 2018-03-20 | 2018-03-20 | A kind of method, apparatus and system for extracting configuration file from mirror image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810231401.6A CN108563461A (en) | 2018-03-20 | 2018-03-20 | A kind of method, apparatus and system for extracting configuration file from mirror image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108563461A true CN108563461A (en) | 2018-09-21 |
Family
ID=63531910
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810231401.6A Pending CN108563461A (en) | 2018-03-20 | 2018-03-20 | A kind of method, apparatus and system for extracting configuration file from mirror image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108563461A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111382136A (en) * | 2018-12-29 | 2020-07-07 | 华为技术有限公司 | File system mirror image and file request method |
CN112527357A (en) * | 2020-12-14 | 2021-03-19 | 中国平安人寿保险股份有限公司 | Service hot loading updating method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201648A (en) * | 2016-06-27 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of virtual machine creation method and device |
CN106843976A (en) * | 2017-01-25 | 2017-06-13 | 北京百度网讯科技有限公司 | Method and apparatus for generating image file |
CN106873975A (en) * | 2016-12-30 | 2017-06-20 | 武汉默联股份有限公司 | Devops based on Docker persistently pays and automated system and method |
CN107248986A (en) * | 2017-06-08 | 2017-10-13 | 医惠科技有限公司 | A kind of service tray method |
US20170329588A1 (en) * | 2014-12-15 | 2017-11-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and Deployment Module for Managing a Container to be Deployed on a Software Platform |
-
2018
- 2018-03-20 CN CN201810231401.6A patent/CN108563461A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170329588A1 (en) * | 2014-12-15 | 2017-11-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and Deployment Module for Managing a Container to be Deployed on a Software Platform |
CN106201648A (en) * | 2016-06-27 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of virtual machine creation method and device |
CN106873975A (en) * | 2016-12-30 | 2017-06-20 | 武汉默联股份有限公司 | Devops based on Docker persistently pays and automated system and method |
CN106843976A (en) * | 2017-01-25 | 2017-06-13 | 北京百度网讯科技有限公司 | Method and apparatus for generating image file |
CN107248986A (en) * | 2017-06-08 | 2017-10-13 | 医惠科技有限公司 | A kind of service tray method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111382136A (en) * | 2018-12-29 | 2020-07-07 | 华为技术有限公司 | File system mirror image and file request method |
CN111382136B (en) * | 2018-12-29 | 2024-03-15 | 华为技术有限公司 | File system mirror image and file request method |
CN112527357A (en) * | 2020-12-14 | 2021-03-19 | 中国平安人寿保险股份有限公司 | Service hot loading updating method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10958739B2 (en) | Capturing a virtual configuration from cloud-provisioning data | |
EP3030966B1 (en) | Virtual computing instance migration | |
CN106775924B (en) | Virtual machine starts method and apparatus | |
US9146755B2 (en) | System and method for transporting platform independent power configuration parameters | |
CN103595790B (en) | The remote access method of equipment, thin-client and virtual machine | |
US11363117B2 (en) | Software-specific auto scaling | |
CN110289983B (en) | Load balancing application creation method and device, computer equipment and storage medium | |
CN112988281B (en) | Application starting method and device | |
US20230031952A1 (en) | Network service management system and network service management method | |
CN109814863A (en) | A kind of processing method, device, computer equipment and computer storage medium for requesting returned data | |
CN105930249B (en) | Using monitoring method and device | |
CN108563461A (en) | A kind of method, apparatus and system for extracting configuration file from mirror image | |
WO2023179725A1 (en) | Application integration method and device | |
US10257054B2 (en) | Searchable best fit abstraction framework for catalog driven service delivery | |
CN103618758B (en) | Web server and system resource access control method thereof | |
CN111124540A (en) | Dynamic configuration method and service request forwarding method of service control system | |
CN107749813A (en) | Account management method, device, storage medium, equipment, server and terminal | |
CN107741885B (en) | Transaction and service association method and system based on CS framework | |
US10291743B2 (en) | Configuring service endpoints in native client applications | |
US20020107921A1 (en) | Work-flow cooperation processing apparatus, work-flow cooperation processing system, work-flow-system cooperation method, program therefor, and recording medium therefor | |
CN115048187A (en) | Operator-based pvc file importing method, device and storage medium | |
CN108600296A (en) | Merchant information processing method, device, electronic equipment and storage medium | |
CN110890110B (en) | Method for integrating VR player in VR all-in-one machine and storage medium | |
CN103918240B (en) | Communication interface method and the SE using the communication interface method for being equipped with SE on mobile terminals | |
US11614961B2 (en) | Generating cloud workflows from local workflows |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |