CN112148419A - Mirror image management method, device and system in cloud platform and storage medium - Google Patents

Mirror image management method, device and system in cloud platform and storage medium Download PDF

Info

Publication number
CN112148419A
CN112148419A CN201910578752.9A CN201910578752A CN112148419A CN 112148419 A CN112148419 A CN 112148419A CN 201910578752 A CN201910578752 A CN 201910578752A CN 112148419 A CN112148419 A CN 112148419A
Authority
CN
China
Prior art keywords
current account
mirror image
private
target container
image
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.)
Granted
Application number
CN201910578752.9A
Other languages
Chinese (zh)
Other versions
CN112148419B (en
Inventor
王开元
何猛
叶挺群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910578752.9A priority Critical patent/CN112148419B/en
Publication of CN112148419A publication Critical patent/CN112148419A/en
Application granted granted Critical
Publication of CN112148419B publication Critical patent/CN112148419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The embodiment of the application provides a mirror image management method, a mirror image management device, a mirror image management system and a storage medium in a cloud platform, wherein the method comprises the following steps: when a task request of a current account for a specified public mirror image is acquired, starting a target container by using the specified public mirror image; writing the identification of the current account in the environment variable of the target container; acquiring debugging information of a current account, and debugging and developing data in a target container by using the debugging information; when a packaging request of a current account for a target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises an identifier of the current account. In the image management method in the cloud platform according to the embodiment of the application, the private images comprise the account identifications, the private images of different users can be distinguished subsequently according to the account identifications in the images, and meanwhile, public images and private images can be distinguished, so that image management is facilitated, and the users can use the images conveniently.

Description

Mirror image management method, device and system in cloud platform and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and a storage medium for managing a mirror image in a cloud platform.
Background
With the development of artificial intelligence technology, online deep learning becomes a main approach for common users to create own specific deep learning algorithm.
In the related deep learning cloud platform, when the mirror image management of the deep learning algorithm is carried out, only one common mirror image view angle is provided, namely, a user can see all the mirror images in the mirror image warehouse of the platform. In the development period of the deep learning algorithm, a plurality of users can iterate a plurality of mirror image versions, including developed mirror images and semi-finished mirror images after development is stopped, and all users can see the mirror images, so that management of the mirror images is not facilitated, and the use of the mirror images by the users is inconvenient.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a system, and a storage medium for managing a mirror image in a cloud platform, so as to facilitate management of the mirror image and use of the mirror image by a user. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for managing images in a cloud platform, where the method includes:
when a task request of a current account for a specified public mirror image is acquired, starting a target container by using the specified public mirror image;
writing an identification of the current account in an environment variable of the target container;
acquiring debugging information of the current account, and debugging and developing data in the target container by using the debugging information;
when a packaging request of the current account for the target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises an identifier of the current account.
Optionally, after starting the target container by using the specified public image, the method further includes:
mounting a command line tool in the target container;
when the packaging request of the current account for the target container is obtained, creating a mirror image of the target container to obtain a private mirror image of the current account, including:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
and calling a container engine to carry out mirror image submission and mirror image pushing on the target container based on the packaging request to obtain the private mirror image of the current account.
Optionally, the method further includes:
acquiring a mirror image display request aiming at the current account, wherein the mirror image display request of the current account comprises an identification of the current account;
determining a private mirror image of the current account according to the identifier of the current account;
and sending the display information of the private image of the current account to the login client of the current account so as to enable the login client of the current account to display the display information of the private image of the current account.
Optionally, the determining the private image of the current account according to the identifier of the current account includes:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
Optionally, the method further includes:
and sending display information of the public mirror image to a login client of the current account so that the current account displays the display information of the public mirror image.
In a second aspect, an embodiment of the present application provides a method for managing images in a cloud platform, where the method includes:
obtaining login information of a current account, wherein the login information of the current account comprises an identifier of the current account;
acquiring display information of a private mirror image of the current account, which is sent by a cloud platform according to the identifier of the current account;
and displaying the display information of the private mirror image of the current account.
Optionally, the current account has editing, running, and storing rights for a private image of the current account.
In a third aspect, an embodiment of the present application provides an image management apparatus in a cloud platform, where the apparatus includes:
the task request acquisition module is used for starting a target container by using the specified public mirror image when acquiring a task request of the current account for the specified public mirror image;
the account identifier adding module is used for writing the identifier of the current account in the environment variable of the target container;
the debugging development module is used for acquiring debugging information of the current account and debugging and developing data in the target container by using the debugging information;
and the private mirror image acquisition module is used for creating a mirror image of the target container to obtain a private mirror image of the current account when the packaging request of the current account for the target container is acquired, wherein the private mirror image of the current account comprises the identifier of the current account.
Optionally, the apparatus further comprises:
the execution program mounting module is used for mounting a command line tool in the target container;
the private image acquisition module is specifically configured to:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
and calling a container engine to carry out mirror image submission and mirror image pushing on the target container based on the packaging request to obtain the private mirror image of the current account.
Optionally, the apparatus further comprises:
a display request obtaining module, configured to obtain an image display request for the current account, where the image display request for the current account includes an identifier of the current account;
the account mirror image determining module is used for determining the private mirror image of the current account according to the identification of the current account;
and the mirror image display module is used for sending the display information of the private mirror image of the current account to the login client of the current account so as to enable the login client of the current account to display the display information of the private mirror image of the current account.
Optionally, the account image determining module is specifically configured to:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
Optionally, the mirror image display module is further configured to:
and sending display information of the public mirror image to a login client of the current account so that the current account displays the display information of the public mirror image.
In a fourth aspect, an embodiment of the present application provides an image management apparatus in a cloud platform, where the apparatus includes:
the system comprises a login information acquisition module, a login information acquisition module and a login information processing module, wherein the login information acquisition module is used for acquiring login information of a current account, and the login information of the current account comprises an identifier of the current account;
the display information acquisition module is used for acquiring display information of the private mirror image of the current account, which is sent by the cloud platform according to the identifier of the current account;
and the display information display module is used for displaying the display information of the private mirror image of the current account.
Optionally, the current account has editing, running, and storing rights for a private image of the current account.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the image management method in the cloud platform according to any one of the first aspects.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the image management method in the cloud platform according to any one of the second aspects.
In a seventh aspect, an embodiment of the present application provides a server, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the image management method in the cloud platform according to any one of the first aspect described above when executing the program stored in the memory.
In an eighth aspect, an embodiment of the present application provides a client, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the image management method in the cloud platform according to any one of the second aspects when executing the program stored in the memory.
In a ninth aspect, an embodiment of the present application provides an image management system, where the system includes: a cloud platform and a client;
the cloud platform is configured to implement the image management method in the cloud platform according to any one of the first aspect at runtime;
the client is configured to implement the image management method in the cloud platform according to any one of the second aspects at runtime.
According to the mirror image management method, device, system and storage medium in the cloud platform, when a task request of a current account for a specified public mirror image is acquired, a target container is started by using the specified public mirror image; writing the identification of the current account in the environment variable of the target container; acquiring debugging information of a current account, and debugging and developing data in a target container by using the debugging information; when a packaging request of a current account for a target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises an identifier of the current account. The environment variable of the target container includes the identity of the current account, and thus the image of the target container also includes the identity of the current account. The image including the identity of the current account is mirrored as a private image of the current account. Subsequently, private images of different users can be distinguished according to the identification of the account in the images, and meanwhile, public images and private images can be distinguished, so that image management is facilitated, and the users can use the images conveniently. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first schematic diagram of a method for managing images in a cloud platform according to an embodiment of the present application;
fig. 2 is a second schematic diagram of a mirror management method in a cloud platform according to an embodiment of the present application;
fig. 3 is a third schematic diagram of a method for managing images in a cloud platform according to an embodiment of the present application;
fig. 4 is a fourth schematic diagram illustrating a method for managing images in a cloud platform according to an embodiment of the present application;
fig. 5 is a first schematic diagram of an image management apparatus in a cloud platform according to an embodiment of the present application;
fig. 6 is a second schematic diagram of an image management apparatus in a cloud platform according to an embodiment of the present application;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Docker is an open-source application container engine, and can help developers pack own application programs and related dependencies into a portable container package, and then distribute the application programs to other machines running a Linux system. In the related deep learning cloud platform, when the image management of the deep learning algorithm is performed, only one view angle of a public image is provided, that is, a user can see all images in an image warehouse of the platform, for example, a built private Docker hub of the platform. This is not conducive to the management of the images, and is inconvenient for the user to use the images.
In view of the above, in a first aspect, an embodiment of the present application provides a method for managing images in a cloud platform, and referring to fig. 1, the method includes:
s101, when a task request of a current account for a specified public mirror image is acquired, starting a target container by using the specified public mirror image.
The image management method in the cloud platform is applied to the machine learning algorithm cloud platform, and can be specifically realized through a server in the cloud platform.
After a client logs in a cloud platform through a current account, a user can select one of the public mirror images through the client as a basic mirror image for developing an application required by the user, the user can select a specified public mirror image through the client, and a task request aiming at the specified public mirror image is sent to the cloud platform. When the cloud platform obtains a task request of a current account for a specified public mirror image, a container, namely a target container, is started by using the specified public mirror image. In the embodiment of the application, the target container can be started through a public mirror image by using a method for starting the container through the mirror image in any related technology.
In this embodiment of the application, the target container is used for running a machine learning task, and the machine learning task may include a training task of a neural network model, a task of performing each function of target recognition (face recognition, human body recognition, vehicle recognition, license plate recognition, and the like), behavior recognition, target tracking, voice recognition, and the like by using a neural network, and a task related to other deep learning, which is not limited herein.
For example, as shown in fig. 2, a user logs in the cloud platform through a Web interface, for example, the user inputs an account name and a password in the Web login interface, so as to establish a connection based on SSH (Secure Shell) with the cloud platform. The cloud platform displays each public mirror image in a Web interface, a user selects one public mirror image (the selected public mirror image is called as a designated public mirror image) through the Web interface and submits a task request aiming at the designated public mirror image, the cloud platform selects a Docker container on one physical node from each physical node of the cloud platform, and the Docker container, namely a target container, is started by using the public mirror image. Of course, it is also possible to create a Docker container on a physical node using a public mirror and start the Docker container.
And S102, writing the identifier of the current account into the environment variable of the target container.
The cloud platform writes the identifier of the current account in the environment variable of the target container, so that the subsequently generated image of the target container also comprises the identifier of the current account. The identification of the current account is used to uniquely identify the current account, and may be, for example, an account name or ID of the current account.
S103, obtaining the debugging information of the current account, and debugging and developing the data in the target container by using the debugging information.
The debugging information can comprise data such as training samples and the like, and a user can debug and develop the data in the target container through a Shell development environment, so that the application required by the user is obtained. In the embodiment of the present application, reference may be made to the process of debugging and developing data in a container in the related art, and details are not described here.
And S104, when the packaging request of the current account for the target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises the identifier of the current account.
The environment variable of the target container includes the identity of the current account, and thus the image of the target container also includes the identity of the current account. In particular, the identity of the current account may be written to the tag of the private image of the current account. The image including the identity of the current account is mirrored as a private image of the current account. Subsequently, private images of different users can be distinguished according to the identification of the account in the images, and meanwhile, public images and private images can be distinguished, so that image management is facilitated, and the users can use the images conveniently.
In a possible implementation, after the selecting the target container, the method further includes:
and mounting a command line tool in the target container.
In the process of starting the target container through the designated public mirror image, the cloud platform mounts an executable program, namely a command line tool, in the target container in a file mounting mode. Each command encapsulates a series of requests to a hellserver on the node where the container resides, including the mirror management command.
When the packaging request of the current account for the target container is obtained, creating a mirror image of the target container to obtain a private mirror image of the current account, including:
step one, a packaging request of the current account for the target container is obtained through a command line tool mounted to the target container.
And step two, based on the packaging request, calling a container engine to carry out mirror image submission and mirror image pushing on the target container to obtain the private mirror image of the current account.
The user can save the current development environment for being able to quickly enter into development next time without having to deal with the influence of environmental problems. Sending a packaging request aiming at the target container by using a command line tool mounted in the target container, and calling a container engine in a physical node where the target container is located through the packaging request to carry out mirror image submission and mirror image pushing on the current target container to obtain a private mirror image of the current account.
In a possible implementation manner, after the command line tool obtains the packaging request, the packaging request is sent to the help service, so that the help service calls a container engine to perform mirror image submission and mirror image pushing on the target container after obtaining the packaging request. For example, one possible implementation flow is shown in fig. 3, where Container is a target Container, and includes a debugging environment of a user, which may be a Shell environment, for example. A user sends a request for packaging a mirror image through a command line tool, wherein the request can comprise a mirror image name and a mirror image label, the request is packaged into an http (Hyper Text Transfer Protocol) request and is transmitted to a HelpServer on a host computer through unix socket, the HelpServer receives the request and then assembles the mirror image name, a Docker commit command and a Docker push command are executed through Dockerd according to an identification, the mirror image name and the mirror image label of an account submitting the request, and the private mirror image of the current account is submitted to Docker hub (a mirror image warehouse). The naming modes of the private mirror image and the public mirror image can be set according to actual requests. Optionally, the private image may be named according to a URL of the Docker hub (Uniform Resource Locator)/account identifier/image name: image tag, and the public image may be named according to a URL of the Docker hub/root/image name: image tag.
In the embodiment of the application, the HelpServer is a daemon process belonging to the physical node, and the Docker commit command and the Docker push command are executed through the HelpServer by the unix socket.
Optionally, the image management method in the cloud platform according to the embodiment of the present application further includes:
step one, acquiring an image display request aiming at the current account, wherein the image display request of the current account comprises an identification of the current account.
The generation mechanism of the mirror image display request of the current account can be set according to the actual situation. For example, the mirror image display request of the current account may be sent to the cloud platform by the user through the client, or may be automatically generated by the cloud platform after the client successfully logs in through the current account. The mirror image display request of the current account can also be automatically generated by the cloud platform after a new private mirror image of the current account is generated.
And step two, determining the private mirror image of the current account according to the identification of the current account.
In a possible embodiment, the determining the private image of the current account according to the identifier of the current account includes:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
And each mirror image in the cloud platform is stored in the mirror image warehouse, and the mirror images which do not comprise the identification of the current account in the mirror image warehouse of the cloud platform are filtered according to the identification of the current account to obtain each mirror image which comprises the identification of the current account, namely the private mirror image of the current account. Optionally, the public mirror image and the private mirror image may be stored in two mirror image warehouses respectively, and only the mirror image warehouse of the private mirror image is filtered during filtering.
Certainly, a mapping table of the account and the private mirror image may also be pre-established, where the mapping table records a correspondence between the identifier of each account and the identifier of each private mirror image (for example, the name or ID of the private mirror image, etc.), queries the mapping table according to the identifier of the current account, thereby determining the identifier of each private mirror image corresponding to the identifier of the current account, and determines the private mirror image of the current account according to the identifier of each private mirror image corresponding to the identifier of the current account.
And step three, sending the display information of the private mirror image of the current account to the login client of the current account so that the current account displays the display information of the private mirror image of the current account.
The display information of the private image may include attribute information of the private image, such as an image name, an image label, an image generation time, and the like, and may further include a remark of the user for the private image, and the like. The cloud platform sends display information of the private image of the current account to a login client of the current account, and the login client of the current account receives the display information and displays the display information of the private image of the current account in the login client of the current account.
In a possible embodiment, the method further includes:
and sending the display information of the public mirror image to the login client of the current account so that the current account displays the display information of the public mirror image.
Besides the display information of the private mirror image of the current account, the display information of the public mirror image can be displayed in the login client of the current account, so that a user can conveniently select the public mirror image for training.
In the embodiment of the application, the login client of the current account displays the private mirror image of the current account, so that the private mirror image isolation of different accounts is realized, mirror image management is facilitated, and a user can use the mirror image conveniently.
In one possible implementation, the current account possesses the handling rights for the private image of the current account. The disposition rights include, but are not limited to, editing, running, and storing rights of the image, etc.
In a second aspect, an embodiment of the present application further provides a method for managing images in a cloud platform, and referring to fig. 4, the method includes:
s401, acquiring a mirror image display request aiming at a current account, wherein the mirror image display request of the current account comprises an identifier of the current account;
s402, determining the private mirror image of the current account according to the identification of the current account, wherein the private mirror image of the current account is a mirror image developed by the current account based on a machine learning algorithm;
and S403, sending the display information of the private image of the current account to the login client of the current account so that the current account displays the private image of the current account.
In the embodiment of the application, the login client of the current account displays the private mirror image of the current account, so that the private mirror image isolation of different accounts is realized, mirror image management is facilitated, and a user can use the mirror image conveniently.
Optionally, the image management method in the cloud platform according to the embodiment of the present application further includes:
and sending the display information of the public mirror image to the login client of the current account so that the current account displays the display information of the public mirror image.
Optionally, the image management method in the cloud platform according to the embodiment of the present application further includes:
when a task request of a current account for a specified public mirror image is acquired, starting a target container by using the specified public mirror image;
writing the identifier of the current account into the environment variable of the target container;
acquiring debugging information of the current account, and debugging and developing data in the target container by using the debugging information;
when the packaging request of the current account for the target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises the identifier of the current account.
Optionally, after starting the target container by using the specified public image, the method further includes:
mounting a command line tool in the target container;
when the packaging request of the current account for the target container is obtained, creating a mirror image of the trained machine learning algorithm in the target container to obtain a private mirror image of the current account, including:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
and calling a container engine to carry out mirror image submission and mirror image pushing on the target container based on the packaging request to obtain the private mirror image of the current account.
Optionally, the determining the private image of the current account according to the identifier of the current account includes:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
In this embodiment of the present application, the environment variable of the target container includes an identifier of the current account, and thus the image of the target container also includes the identifier of the current account. The image including the identity of the current account is mirrored as a private image of the current account. Subsequently, private images of different users can be distinguished according to the identification of the account in the images, and meanwhile, public images and private images can be distinguished, so that image management is facilitated, and the users can use the images conveniently.
In a third aspect, an embodiment of the present application further provides an image management apparatus in a cloud platform, with reference to fig. 5, the apparatus includes:
a task request obtaining module 501, configured to, when a task request of a current account for a specified public mirror is obtained, start a target container using the specified public mirror;
an account identifier adding module 502, configured to write an identifier of the current account in the environment variable of the target container;
the debugging development module 503 is configured to acquire debugging information of the current account, and debug and develop data in the target container by using the debugging information;
a private image obtaining module 504, configured to create an image of the target container to obtain a private image of the current account when obtaining the packaging request of the current account for the target container, where the private image of the current account includes an identifier of the current account.
Optionally, the mirror image management apparatus in the cloud platform according to the embodiment of the present application further includes:
the execution program mounting module is used for mounting a command line tool in the target container;
the private image obtaining module 504 is specifically configured to:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
based on the packaging request, a container engine is called to carry out mirror image submission and mirror image pushing on the target container, and a private mirror image of the current account is obtained.
Optionally, the mirror image management apparatus in the cloud platform according to the embodiment of the present application further includes:
a display request obtaining module, configured to obtain an image display request for the current account, where the image display request for the current account includes an identifier of the current account;
the account mirror image determining module is used for determining the private mirror image of the current account according to the identification of the current account;
and the mirror image display module is used for sending the display information of the private mirror image of the current account to the login client of the current account so that the current account displays the display information of the private mirror image of the current account.
Optionally, the account image determining module is specifically configured to:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
Optionally, the mirror image display module is further configured to:
and sending display information of the public mirror image to a login client of the current account so that the current account displays the display information of the public mirror image.
In a fourth aspect, the present application also provides an image management apparatus in a cloud platform, with reference to fig. 6, where the apparatus includes:
a display request obtaining module 601, configured to obtain an image display request for a current account, where the image display request for the current account includes an identifier of the current account;
an account mirror image determining module 602, configured to determine a private mirror image of the current account according to the identifier of the current account, where the private mirror image of the current account is a mirror image developed by the current account based on a machine learning algorithm;
the mirror image display module 603 is configured to send display information of the private mirror image of the current account to the login client of the current account, so that the current account displays the display information of the private mirror image of the current account.
Optionally, the mirror image management apparatus in the cloud platform according to the embodiment of the present application further includes:
the task request acquisition module is used for starting a target container by using the specified public mirror image when acquiring a task request of the current account for the specified public mirror image;
the account identifier adding module is used for writing the identifier of the current account in the environment variable of the target container;
the debugging development module is used for acquiring debugging information of the current account and debugging and developing data in the target container by using the debugging information;
and the private mirror image acquisition module is used for creating a mirror image of the target container to obtain a private mirror image of the current account when the packaging request of the current account for the target container is acquired, wherein the private mirror image of the current account comprises the identifier of the current account.
Optionally, the mirror image management apparatus in the cloud platform according to the embodiment of the present application further includes:
the execution program mounting module is used for mounting a command line tool in the target container;
the private image acquisition module is specifically configured to:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
based on the packaging request, a container engine is called to carry out mirror image submission and mirror image pushing on the target container, and a private mirror image of the current account is obtained.
Optionally, the account image determining module 602 is specifically configured to:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
Optionally, the mirror image display module 603 is further configured to:
and sending display information of the public mirror image to a login client of the current account so that the current account displays the display information of the public mirror image.
In another aspect, an embodiment of the present application further provides a method for managing images in a cloud platform, where the method includes:
step one, obtaining login information of a current account, wherein the login information of the current account comprises an identifier of the current account.
The image management method in the cloud platform is applied to the client, and can be specifically realized through the client. The current account is the account which the client logs in currently.
And step two, acquiring display information of the private mirror image of the current account, which is sent by the cloud platform according to the identification of the current account.
The account which the client logs in currently is called a current account, and the private image of the current account comprises the identification of the current account. After a client logs in a cloud platform by using a current account, the cloud platform determines a private image of the current account according to the identification of the current account, and sends display information of the private image of the current account to the client.
And step three, displaying the display information of the private mirror image of the current account.
After receiving the display information of the private image of the current account, the client displays the display information of the private image of the current account, for example, the display information of the private image of the current account is displayed on a Web page.
The cloud platform can also send display information of the public mirror image to the client, and the client displays the display information of the public mirror image after receiving the display information of the public mirror image.
Optionally, the current account has editing, running and storing rights for the private image of the current account. In addition, the current account has the use right for the public mirror image, the use right comprises the use of the mirror image, and the operations such as deletion and modification and the like cannot be executed on the mirror image. The method comprises the steps that only the private mirror image and the public mirror image of the current account are displayed in a login client of the current account, the private mirror images of other accounts except the current account are not displayed, and the current account does not have editing, running and storing permission of the private mirror images of other accounts.
In another aspect, an embodiment of the present application further provides an image management device in a cloud platform, which is applied to a client, and the device includes:
the system comprises a login information acquisition module, a login information acquisition module and a login information processing module, wherein the login information acquisition module is used for acquiring login information of a current account, and the login information of the current account comprises an identifier of the current account;
the display information acquisition module is used for acquiring display information of the private mirror image of the current account, which is sent by the cloud platform according to the identifier of the current account;
and the display information display module is used for displaying the display information of the private mirror image of the current account.
Optionally, the current account has editing, running and storing rights for the private image of the current account.
In another aspect, an embodiment of the present application further provides a server, including: a processor and a memory;
the memory is used for storing computer program
When the processor is used for executing the computer program stored in the memory, the following steps are realized:
when a task request of a current account for a specified public mirror image is acquired, starting a target container by using the specified public mirror image;
writing the identifier of the current account into the environment variable of the target container;
acquiring debugging information of the current account, and debugging and developing data in the target container by using the debugging information;
when the packaging request of the current account for the target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises the identifier of the current account.
Optionally, referring to fig. 7, the server according to the embodiment of the present application further includes a communication interface 702 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete communication with each other through the communication bus 704.
Optionally, when the processor is configured to execute the computer program stored in the memory, the image management method in any cloud platform of the first aspect may also be implemented.
In another aspect, an embodiment of the present application further provides a server, including: a processor and a memory;
the memory is used for storing computer program
The processor is configured to implement the image management method in any cloud platform according to the second aspect when executing the computer program stored in the memory.
In another aspect, an embodiment of the present application provides a client, including a processor and a memory;
the memory is used for storing computer programs;
the processor is configured to implement the following steps when executing the program stored in the memory:
and obtaining the login information of the current account, wherein the login information of the current account comprises the identification of the current account.
And acquiring display information of the private image of the current account, which is sent by the cloud platform and aims at the current account, according to the identification of the current account.
And displaying the display information of the private mirror image of the current account.
Optionally, the current account has editing, running and storing rights for the private image of the current account.
The communication bus mentioned in the above server may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
An embodiment of the present application further provides a mirror image management system in a cloud platform, where the system includes: a cloud platform and a client;
the cloud platform consists of a plurality of servers; the server is used for realizing any one of the image management methods applied to the cloud platform of the server during operation.
The client is used for realizing any one of the image management methods applied to the cloud platform of the client during operation.
The embodiment of the application provides a mirror image management system, which comprises a cloud platform and a client,
the client side sends login information of a current account to the cloud platform, wherein the login information of the current account comprises an identifier of the current account;
when acquiring a task request of a current account for a specified public mirror image, the cloud platform starts a target container by using the specified public mirror image; writing an identification of the current account in an environment variable of the target container; acquiring debugging information of the current account, and debugging and developing data in the target container by using the debugging information;
the client sends a packaging request of the target container to the cloud platform;
when the cloud platform acquires a packaging request of the current account for the target container, creating a mirror image of the target container, obtaining a private mirror image of the current account, and sending display information of the private mirror image of the current account to the client, wherein the private mirror image of the current account comprises an identifier of the current account;
and the client displays the display information of the private mirror image of the current account. The client is electronic equipment which can be a user, specifically a personal computer or a smart phone, and can also be client software running on the electronic equipment of the user.
The cloud platform may include a server or a server cluster, and may also be a cloud platform service module that operates through a server or a server cluster.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for managing the mirror image in any cloud platform in the first aspect is implemented.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for managing images in any cloud platform in the second aspect is implemented.
It should be noted that, in this document, the technical features in the various alternatives can be combined to form the scheme as long as the technical features are not contradictory, and the scheme is within the scope of the disclosure of the present application. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments of the apparatus, the storage medium, and the system, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (16)

1. A method for managing images in a cloud platform is characterized by comprising the following steps:
when a task request of a current account for a specified public mirror image is acquired, starting a target container by using the specified public mirror image;
writing an identification of the current account in an environment variable of the target container;
acquiring debugging information of the current account, and debugging and developing data in the target container by using the debugging information;
when a packaging request of the current account for the target container is acquired, creating a mirror image of the target container to obtain a private mirror image of the current account, wherein the private mirror image of the current account comprises an identifier of the current account.
2. The method of claim 1, wherein after booting a target container using the specified public image, the method further comprises:
mounting a command line tool in the target container;
when the packaging request of the current account for the target container is obtained, creating a mirror image of the target container to obtain a private mirror image of the current account, including:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
and calling a container engine to carry out mirror image submission and mirror image pushing on the target container based on the packaging request to obtain the private mirror image of the current account.
3. The method of claim 1, further comprising:
acquiring a mirror image display request aiming at the current account, wherein the mirror image display request of the current account comprises an identification of the current account;
determining a private mirror image of the current account according to the identifier of the current account;
and sending the display information of the private image of the current account to the login client of the current account so as to enable the login client of the current account to display the display information of the private image of the current account.
4. The method of claim 3, wherein determining the private image of the current account based on the identity of the current account comprises:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
5. The method according to any one of claims 1-4, further comprising:
and sending display information of the public mirror image to a login client of the current account so that the current account displays the display information of the public mirror image.
6. A method for managing images in a cloud platform is characterized by comprising the following steps:
obtaining login information of a current account, wherein the login information of the current account comprises an identifier of the current account;
acquiring display information of a private mirror image of the current account, which is sent by a cloud platform according to the identifier of the current account;
and displaying the display information of the private mirror image of the current account.
7. The method of claim 6, wherein the current account has editing, running, and storage rights for a private image of the current account.
8. An apparatus for managing images in a cloud platform, the apparatus comprising:
the task request acquisition module is used for starting a target container by using the specified public mirror image when acquiring a task request of the current account for the specified public mirror image;
the account identifier adding module is used for writing the identifier of the current account in the environment variable of the target container;
the debugging development module is used for acquiring debugging information of the current account and debugging and developing data in the target container by using the debugging information;
and the private mirror image acquisition module is used for creating a mirror image of the target container to obtain a private mirror image of the current account when the packaging request of the current account for the target container is acquired, wherein the private mirror image of the current account comprises the identifier of the current account.
9. The apparatus of claim 8, further comprising:
the execution program mounting module is used for mounting a command line tool in the target container;
the private image acquisition module is specifically configured to:
acquiring a packaging request of the current account for the target container through a command line tool mounted to the target container;
and calling a container engine to carry out mirror image submission and mirror image pushing on the target container based on the packaging request to obtain the private mirror image of the current account.
10. The apparatus of claim 8, further comprising:
a display request obtaining module, configured to obtain an image display request for the current account, where the image display request for the current account includes an identifier of the current account;
the account mirror image determining module is used for determining the private mirror image of the current account according to the identification of the current account;
and the mirror image display module is used for sending the display information of the private mirror image of the current account to the login client of the current account so as to enable the login client of the current account to display the display information of the private mirror image of the current account.
11. The apparatus of claim 10, wherein the account image determination module is specifically configured to:
and filtering the mirror image in the mirror image warehouse of the cloud platform according to the identification of the current account to obtain the private mirror image of the current account.
12. The apparatus of any of claims 8-11, wherein the mirror display module is further configured to:
and sending display information of the public mirror image to a login client of the current account so that the current account displays the display information of the public mirror image.
13. An apparatus for managing images in a cloud platform, the apparatus comprising:
the system comprises a login information acquisition module, a login information acquisition module and a login information processing module, wherein the login information acquisition module is used for acquiring login information of a current account, and the login information of the current account comprises an identifier of the current account;
the display information acquisition module is used for acquiring display information of the private mirror image of the current account, which is sent by the cloud platform according to the identifier of the current account;
and the display information display module is used for displaying the display information of the private mirror image of the current account.
14. The apparatus of claim 13, wherein the current account has editing, running, and storage rights for a private image of the current account.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
16. An image management system in a cloud platform, the system comprising: a cloud platform and a client;
the client side sends login information of a current account to the cloud platform, wherein the login information of the current account comprises an identifier of the current account;
when acquiring a task request of a current account for a specified public mirror image, the cloud platform starts a target container by using the specified public mirror image; writing an identification of the current account in an environment variable of the target container; acquiring debugging information of the current account, and debugging and developing data in the target container by using the debugging information;
the client sends a packaging request of the target container to the cloud platform;
when the cloud platform acquires a packaging request of the current account for the target container, creating a mirror image of the target container, obtaining a private mirror image of the current account, and sending display information of the private mirror image of the current account to the client, wherein the private mirror image of the current account comprises an identifier of the current account;
and the client displays the display information of the private mirror image of the current account.
CN201910578752.9A 2019-06-28 2019-06-28 Mirror image management method, device and system in cloud platform and storage medium Active CN112148419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910578752.9A CN112148419B (en) 2019-06-28 2019-06-28 Mirror image management method, device and system in cloud platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910578752.9A CN112148419B (en) 2019-06-28 2019-06-28 Mirror image management method, device and system in cloud platform and storage medium

Publications (2)

Publication Number Publication Date
CN112148419A true CN112148419A (en) 2020-12-29
CN112148419B CN112148419B (en) 2024-01-02

Family

ID=73891194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910578752.9A Active CN112148419B (en) 2019-06-28 2019-06-28 Mirror image management method, device and system in cloud platform and storage medium

Country Status (1)

Country Link
CN (1) CN112148419B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007200941A1 (en) * 2000-05-26 2007-03-22 Akamai Technologies, Inc. Global load balancing across mirrored data centers
US20120128058A1 (en) * 2010-11-21 2012-05-24 Human Monitoring Ltd. Method and system of encoding and decoding media content
CN103491144A (en) * 2013-09-09 2014-01-01 中国科学院计算技术研究所 Method for constructing wide area network virtual platform
CN104378206A (en) * 2014-10-20 2015-02-25 中国科学院信息工程研究所 Virtualization desktop safety certification method and system based on USB-Key
US9569455B1 (en) * 2013-06-28 2017-02-14 EMC IP Holding Company LLC Deduplicating container files
CN106899669A (en) * 2017-02-23 2017-06-27 郑州云海信息技术有限公司 A kind of enterprise's container mirror image method for building up and device based on Registry
WO2017129106A1 (en) * 2016-01-29 2017-08-03 腾讯科技(深圳)有限公司 Data request processing method, server and system
US20180018590A1 (en) * 2016-07-18 2018-01-18 NantOmics, Inc. Distributed Machine Learning Systems, Apparatus, and Methods
CN107733977A (en) * 2017-08-31 2018-02-23 北京百度网讯科技有限公司 A kind of cluster management method and device based on Docker
CN107766707A (en) * 2017-10-16 2018-03-06 郑州云海信息技术有限公司 The method and apparatus that user's request is responded in application container engine
CN107786343A (en) * 2017-10-27 2018-03-09 浪潮软件股份有限公司 A kind of access method and system in privately owned mirror image warehouse
CN107888695A (en) * 2017-11-23 2018-04-06 新华三云计算技术有限公司 Cloud platform creates the method and cloud platform equipment of mirror image
CN108111383A (en) * 2017-12-26 2018-06-01 北京航空航天大学 A kind of cross-domain container virtual network construction method based on SDN
CN108228201A (en) * 2017-12-28 2018-06-29 广州亦云信息技术股份有限公司 Method of managing software, electronic equipment and storage medium based on software storage
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109104467A (en) * 2018-07-25 2018-12-28 北京京东尚科信息技术有限公司 Develop environment construction method, apparatus and plateform system and storage medium
CN109144661A (en) * 2018-07-05 2019-01-04 杭州电子科技大学 A kind of deep learning management method based on docker
CN109272116A (en) * 2018-09-05 2019-01-25 郑州云海信息技术有限公司 A kind of method and device of deep learning
CN109408069A (en) * 2018-07-19 2019-03-01 中国矿业大学 A kind of the cloud part mirror image production method and system of facing cloud part PaaS platform
CN109542791A (en) * 2018-11-27 2019-03-29 长沙智擎信息技术有限公司 A kind of program large-scale concurrent evaluating method based on container technique
WO2019095936A1 (en) * 2017-11-15 2019-05-23 腾讯科技(深圳)有限公司 Method and system for building container mirror image, and server, apparatus and storage medium
WO2019100605A1 (en) * 2017-11-21 2019-05-31 平安科技(深圳)有限公司 Platform-as-a-service paas container platform construction method, server, system, and storage medium

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007200941A1 (en) * 2000-05-26 2007-03-22 Akamai Technologies, Inc. Global load balancing across mirrored data centers
US20120128058A1 (en) * 2010-11-21 2012-05-24 Human Monitoring Ltd. Method and system of encoding and decoding media content
US9569455B1 (en) * 2013-06-28 2017-02-14 EMC IP Holding Company LLC Deduplicating container files
CN103491144A (en) * 2013-09-09 2014-01-01 中国科学院计算技术研究所 Method for constructing wide area network virtual platform
CN104378206A (en) * 2014-10-20 2015-02-25 中国科学院信息工程研究所 Virtualization desktop safety certification method and system based on USB-Key
WO2017129106A1 (en) * 2016-01-29 2017-08-03 腾讯科技(深圳)有限公司 Data request processing method, server and system
US20180018590A1 (en) * 2016-07-18 2018-01-18 NantOmics, Inc. Distributed Machine Learning Systems, Apparatus, and Methods
CN106899669A (en) * 2017-02-23 2017-06-27 郑州云海信息技术有限公司 A kind of enterprise's container mirror image method for building up and device based on Registry
CN107733977A (en) * 2017-08-31 2018-02-23 北京百度网讯科技有限公司 A kind of cluster management method and device based on Docker
CN107766707A (en) * 2017-10-16 2018-03-06 郑州云海信息技术有限公司 The method and apparatus that user's request is responded in application container engine
CN107786343A (en) * 2017-10-27 2018-03-09 浪潮软件股份有限公司 A kind of access method and system in privately owned mirror image warehouse
WO2019095936A1 (en) * 2017-11-15 2019-05-23 腾讯科技(深圳)有限公司 Method and system for building container mirror image, and server, apparatus and storage medium
WO2019100605A1 (en) * 2017-11-21 2019-05-31 平安科技(深圳)有限公司 Platform-as-a-service paas container platform construction method, server, system, and storage medium
CN107888695A (en) * 2017-11-23 2018-04-06 新华三云计算技术有限公司 Cloud platform creates the method and cloud platform equipment of mirror image
CN108111383A (en) * 2017-12-26 2018-06-01 北京航空航天大学 A kind of cross-domain container virtual network construction method based on SDN
CN108228201A (en) * 2017-12-28 2018-06-29 广州亦云信息技术股份有限公司 Method of managing software, electronic equipment and storage medium based on software storage
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109144661A (en) * 2018-07-05 2019-01-04 杭州电子科技大学 A kind of deep learning management method based on docker
CN109408069A (en) * 2018-07-19 2019-03-01 中国矿业大学 A kind of the cloud part mirror image production method and system of facing cloud part PaaS platform
CN109104467A (en) * 2018-07-25 2018-12-28 北京京东尚科信息技术有限公司 Develop environment construction method, apparatus and plateform system and storage medium
CN109272116A (en) * 2018-09-05 2019-01-25 郑州云海信息技术有限公司 A kind of method and device of deep learning
CN109542791A (en) * 2018-11-27 2019-03-29 长沙智擎信息技术有限公司 A kind of program large-scale concurrent evaluating method based on container technique

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
THLZJFEFE 等: "docker容器中的环境变量", CSDN, pages 1 - 3 *
涂作权: "Docker私有仓库管理,删除本地仓库中的镜像", 《CSDN》, pages 1 - 3 *

Also Published As

Publication number Publication date
CN112148419B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
CN106528224B (en) Content updating method, server and system for Docker container
EP3030966B1 (en) Virtual computing instance migration
US11442830B2 (en) Establishing and monitoring programming environments
CN111901294A (en) Method for constructing online machine learning project and machine learning system
US20170052854A1 (en) Method and system for performing automatic system recovery
JP2021500658A (en) Computer implementation methods, systems, and computer program products that perform interactive workflows, as well as computer programs.
CN108287708B (en) Data processing method and device, server and computer readable storage medium
US11880484B2 (en) Enforcing data isolation in jobs executed by a multi-tenant system on a secondary platform
US10223218B2 (en) Disaster recovery of managed systems
US10656939B2 (en) Modeling lifetime of hybrid software application using application manifest
EP3709199A1 (en) Container security policy handling method and related device
CN110890987A (en) Method, device, equipment and system for automatically creating cluster
US10776180B1 (en) Expression-based feature toggle in an application programming interface (API)
CN102984282B (en) Intelligent terminal obtains the method and apparatus of the media data of cloud storage file
CN112148419B (en) Mirror image management method, device and system in cloud platform and storage medium
CN110851688A (en) Page request method, device and equipment
US20200192652A1 (en) Providing context-based application suggestions
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN110089076A (en) The method and apparatus for realizing information interaction
CN114371969A (en) Page performance testing method and device, electronic equipment and storage medium
CN113656378A (en) Server management method, device and medium
CN107220053B (en) BIOS management method and electronic equipment
US20200097512A1 (en) Provisioning a customized software stack for network-based question and answer services
CN112217852A (en) Platform-as-a-service system and method based on workflow engine
CN107305564B (en) Data processing method and device

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
GR01 Patent grant
GR01 Patent grant