CN112148419B - 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
CN112148419B
CN112148419B CN201910578752.9A CN201910578752A CN112148419B CN 112148419 B CN112148419 B CN 112148419B CN 201910578752 A CN201910578752 A CN 201910578752A CN 112148419 B CN112148419 B CN 112148419B
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.)
Active
Application number
CN201910578752.9A
Other languages
Chinese (zh)
Other versions
CN112148419A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Facsimiles In General (AREA)

Abstract

The embodiment of the application provides a method, a device, a system and a storage medium for managing images in a cloud platform, wherein the method comprises the following steps: when a task request of a current account aiming at 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; obtaining the debugging information of the current account, and debugging and developing the data in the target container by utilizing the debugging information; when a 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, wherein the private mirror image of the current account comprises an identification of the current account. In the image management method in the cloud platform, the private images comprise the identification of the account, the private images of different users can be distinguished according to the identification of the account in the images, meanwhile, the public images and the private images can be distinguished, image management is facilitated, and the use of the images by the users is facilitated.

Description

Mirror image management method, device and system in cloud platform and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and a storage medium for managing images in a cloud platform.
Background
With the development of artificial intelligence technology, online deep learning becomes a main way for a common user to create a self-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 exists, 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 iterate a plurality of image versions, including images with complete development, semi-finished images with suspension of development and the like, and all users can see the images, so that the management of the images is not facilitated, and the use of the images by the users is inconvenient.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device, a system and a storage medium for managing images in a cloud platform, so as to realize convenient image management and facilitate the use of images by users. 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 aiming at a specified public image is acquired, starting a target container by using the specified public image;
Writing an identification of the current account in an environment variable of the target container;
obtaining the debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container;
when a 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, wherein the private mirror image of the current account comprises an identifier of the current account.
Optionally, after the target container is started by using the specified public image, the method further includes:
mounting a command line tool in the target container;
when the package 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 comprises:
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 image of the current account according to the identification 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 that the login client of the current account displays 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 comprises:
and sending the display information of the public mirror image to the login client side 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:
acquiring login information of a current account, wherein the login information of the current account comprises an identification of the current account;
Acquiring display information of a private image aiming at the current account, which is sent by a cloud platform, according to the identification of the current account;
and displaying the display information of the private image of the current account.
Optionally, the current account has editing, running and storing rights for the private image of the current account.
In a third aspect, an embodiment of the present application provides a device for managing images in a cloud platform, where the device 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;
an account identifier adding module, configured to write an identifier of the current account in an environment variable of the target container;
the debugging development module is used for acquiring the debugging information of the current account and utilizing the debugging information to debug and develop the data in the target container;
the private image acquisition module is used for creating an image of the target container when the packing request of the current account for the target container is acquired, and obtaining the private image of the current account, wherein the private image of the current account comprises the identification of the current account.
Optionally, the apparatus 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;
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 includes:
the display request acquisition module is used for 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;
the account mirror image determining module is used for determining a private mirror image of the current account according to the identification of the current account;
the mirror image display module is used for sending display information of the private mirror image of the current account to the login client side of the current account so that the login client side of the current account displays the display information of the private mirror image of the current account.
Optionally, the account mirror 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 the display information of the public mirror image to the login client side 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 a device for managing images in a cloud platform, where the device includes:
the login information acquisition module is used for acquiring login information of a current account, wherein 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 image of the current account, which is sent by the cloud platform, according to the identification of the current account;
and the display information display module is used for displaying the display information of the private image of the current account.
Optionally, the current account has editing, running and storing rights for the 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, where the computer program is executed by a processor to implement the method for managing images in a 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, where the computer program is executed by a processor to implement the method for managing images in a cloud platform according to any one of the second aspects.
In a seventh aspect, embodiments of the present application provide a server, including a processor and a memory;
the memory is used for storing a computer program;
and the processor is used for realizing the mirror image management method in the cloud platform according to any one of the first aspect when executing the program stored in the memory.
In an eighth aspect, embodiments of the present application provide a client, including a processor and a memory;
the memory is used for storing a computer program;
and the processor is used for realizing the mirror image management method in the cloud platform according to any one of the second aspect when executing the program stored on the memory.
In a ninth aspect, an embodiment of the present application provides a mirror management system, including: cloud platform and client;
the cloud platform is used for realizing the mirror image management method in the cloud platform according to any one of the first aspect when running;
The client is configured to implement, in a runtime, the method for managing images in a cloud platform according to any one of the second aspect.
According to the image management method, device, system and storage medium in the cloud platform, when a task request of a current account for a specified public image is acquired, a target container is started by using the specified public image; writing the identification of the current account in the environment variable of the target container; obtaining the debugging information of the current account, and debugging and developing the data in the target container by utilizing the debugging information; when a 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, wherein the private mirror image of the current account comprises an identification of the current account. The identification of the current account is included in the environment variable of the target container, and thus in the mirror image of the target container. The image including the identity of the current account is taken as a private image of the current account. The private images of different users can be distinguished according to the identification of the account in the image, and meanwhile, the public images and the private images can be distinguished, so that the image management is facilitated, and the user can use the images conveniently. Of course, not all of the above-described advantages need be achieved simultaneously in practicing any one of the products or methods 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 that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
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 method for managing images in a cloud platform according to an embodiment of the present application;
fig. 3 is a third schematic diagram of a mirror management method in a cloud platform according to an embodiment of the present application;
fig. 4 is a fourth schematic diagram of a mirror image management method in a cloud platform according to an embodiment of the present application;
fig. 5 is a first schematic diagram of a mirror management device in the cloud platform according to an embodiment of the present application;
fig. 6 is a second schematic diagram of a mirror management device in the cloud platform according to the 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 following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Dock is an open-source application container engine that can help developers package their own applications and related dependencies into a portable container package that is then published to other machines running Linux systems. In the related deep learning cloud platform, when the mirror image management of the deep learning algorithm is performed, only one public mirror image view angle exists, namely, a user can see the mirror image warehouse of the platform, for example, all the mirror images in the private Docker hub built by the platform. Thus, the management of the mirror image is not facilitated, and the use of the mirror image by a user is inconvenient.
In view of this, in a first aspect, an embodiment of the present application provides a method for managing images in a cloud platform, referring to fig. 1, the method includes:
s101, when a task request of a current account aiming at a specified public image is acquired, starting a target container by using the specified public image.
The mirror image management method in the cloud platform is applied to a machine learning algorithm cloud platform, and can be specifically realized through a server in the cloud platform.
After the client logs in the cloud platform through the current account, a user can select one of the public images through the client as a basic image for developing applications required by the user, and the user can select a specified public image through the client and send a task request for the specified public image to the cloud platform. When the cloud platform acquires a task request of a current account aiming at a specified public image, a container, namely a target container, is started by using the specified public image. In the embodiment of the application, the target container can be started by the public mirror image through a method for starting the container by the mirror image in any related technology.
In this embodiment of the present application, the target container is used to run a machine learning task, where the machine learning task may include a training task of a neural network model, or may include a task of performing various functions such as target recognition (face recognition, human body recognition, vehicle recognition, license plate recognition, etc.), behavior recognition, target tracking, and speech recognition by using a neural network, or may include other tasks related to deep learning, which is not limited herein.
For example, as shown in fig. 2, a user may log in to 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 an SSH (Secure Shell) based connection with the cloud platform. The cloud platform displays all public images in a Web interface, a user selects one public image (the selected public image is called a designated public image) through the Web interface, submits a task request aiming at the designated public image, and selects a Docker container on one physical node from all physical nodes of the cloud platform, and the Docker container, namely a target container, is started by utilizing the public image. It is of course also possible to create a Docker container on the physical node using public mirroring and to start the Docker container.
S102, writing the identification of the current account in the environment variable of the target container.
The cloud platform writes the identification of the current account in the environment variable of the target container, so that the subsequently generated mirror image of the target container also comprises the identification of the current account. The identification of the current account is used to uniquely identify the current account, e.g., an account name or ID, etc., that may be the current account.
S103, obtaining the debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container.
The debugging information can comprise data such as training samples, and a user can debug and develop the data in the target container through Shell development environment, so that the application required by the user is obtained. In the embodiment of the present application, the process of debugging and developing the data in the target container may refer to the process of debugging and developing the data in the container in the related art, which is not described herein again.
S104, when the packing 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, wherein the private mirror image of the current account comprises the identification of the current account.
The identification of the current account is included in the environment variable of the target container, and thus in the mirror image of the target container. Specifically, the identity of the current account may be written to a tag of the private image of the current account. The image including the identity of the current account is taken as a private image of the current account. The private images of different users can be distinguished according to the identification of the account in the image, and meanwhile, the public images and the private images can be distinguished, so that the image management is facilitated, and the user can use the images conveniently.
In one possible embodiment, 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 appointed 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 directed to a HelpServer on the node where the container resides, and includes a mirror management command.
When the package 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, obtaining a packaging request of the current account for the target container through a command line tool mounted to the target container.
And secondly, 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.
The user can save the current development environment for the next time to be able to quickly enter development without having to deal with environmental concerns. And 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 positioned 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 one possible implementation, after the command line tool obtains the packaging request, the command line tool sends the packaging request to the help service, so that the help service calls a container engine to perform mirror submission and mirror pushing on the target container after obtaining the packaging request. For example, one possible implementation is shown in fig. 3, where the Container is a target Container, including the user's debug environment, which may be a Shell environment, for example. The user issues a request for packaging the mirror image through a command line tool, 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, the http request is transmitted to a HelpServer on a host machine through an unix socket, the HelpServer assembles the mirror image name after receiving the request, and a private mirror image of the current account is submitted to a Docker hub (a mirror image warehouse) through a Docker executing Docker command and a Docker push command according to the identity, the mirror image name and the mirror image label of the account submitting the request. The naming mode of the private image and the public image can be set according to the actual request. Alternatively, the private image may be named according to { URL of Docker hub (Uniform Resource Locator ) }/account identifier/image name: image tag (tag), and the public image may be named according to { URL of Docker hub }/root/image name: image tag.
In the embodiment of the application, the hellcap is a daemon belonging to the physical node, and the socket command and the socket push command are executed by the unix socket via the hellcap, so that compared with the case that the http request is directly sent to the socket by a command line tool, the method can prevent a user from acquiring the IP address of the physical node in a packet-grabbing manner, prevent the exposure of the IP address of the physical node, and increase the security.
Optionally, the method for managing images in a cloud platform according to the embodiment of the present application further includes:
step one, obtaining 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.
The generation mechanism of the mirror image display request of the current account can be set according to actual conditions. 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 the 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 one possible implementation manner, 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 comprising the identification of the current account, namely the private mirror image of the current account. Alternatively, the public mirror image and the private mirror image can be respectively stored in two mirror image warehouses, and only the mirror image warehouse of the private mirror image is filtered during filtering.
Of course, a mapping table of the account and the private mirror image may be pre-established, in which 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) is recorded, the mapping table is queried according to the identifier of the current account, the identifier of each private mirror image corresponding to the identifier of the current account is determined, and the private mirror image of the current account is determined 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 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 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 tag, an image generation time, and the like, and may further include remarks of the user for the private image. The cloud platform sends the display information of the private image of the current account to the login client of the current account, the login client of the current account receives the display information, and the display information of the private image of the current account is displayed in the login client of the current account.
In one possible embodiment, the method further comprises:
and sending the display information of the public mirror image to the login client side of the current account so that the current account displays the display information of the public mirror image.
In addition to displaying information of private images of the current account, the login client of the current account can display displaying information of public images, so that a user can conveniently select the public images 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 images of different accounts are isolated, mirror image management is facilitated, and a user can use the mirror image conveniently.
In one possible implementation, the current account has a treatment right for the private image of the current account. The handling rights include, but are not limited to, the editing, running, and storage 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, referring to fig. 4, where 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 the identification of the current account;
s402, determining a 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;
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 images of different accounts are isolated, mirror image management is facilitated, and a user can use the mirror image conveniently.
Optionally, the method for managing images in a 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 side of the current account so that the current account displays the display information of the public mirror image.
Optionally, the method for managing images in a cloud platform according to the embodiment of the present application further includes:
when a task request of a current account aiming at a specified public image is acquired, starting a target container by using the specified public image;
writing the identification of the current account in the environment variable of the target container;
obtaining the debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container;
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 the target container is started by using the specified public image, the method further includes:
mounting a command line tool in the target container;
when the package request of the current account for the target container is obtained, creating a mirror image of a 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 the identifier of the current account, so the mirror image of the target container also includes the identifier of the current account. The image including the identity of the current account is taken as a private image of the current account. The private images of different users can be distinguished according to the identification of the account in the image, and meanwhile, the public images and the private images can be distinguished, so that the image management is facilitated, and the user can use the images conveniently.
In a third aspect, an embodiment of the present application further provides a device for managing images in a cloud platform, referring to fig. 5, where the device includes:
A task request acquisition module 501, configured to, when acquiring a task request of a current account for a specified public image, start a target container using the specified public image;
an account identifier adding module 502, configured to write an identifier of the current account in an environment variable of the target container;
a debug development module 503, configured to obtain debug information of the current account, and debug and develop data in the target container using the debug information;
and the private image obtaining module 504 is configured to create an image of the target container when obtaining a packaging request of the current account for the target container, so as to obtain a private image of the current account, where the private image of the current account includes an identifier of the current account.
Optionally, the image management device in the cloud platform in 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;
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 image management device in the cloud platform in the embodiment of the present application further includes:
the display request acquisition module is used for 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;
the account mirror image determining module is used for determining a private mirror image of the current account according to the identification of the current account;
the mirror image display module is used for sending display information of the private mirror image of the current account to the login client side 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 mirror 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 the display information of the public mirror image to the login client side of the current account so that the current account displays the display information of the public mirror image.
In a fourth aspect, the application implementation further provides a device for managing images in a cloud platform, referring to fig. 6, where the device includes:
A display request obtaining module 601, configured to obtain a mirror image display request for a current account, where the mirror image display request for the current account includes an identifier of the current account;
an account image determining module 602, configured to determine, according to the identifier of the current account, a private image of the current account, where the private image of the current account is an image developed by the current account based on a machine learning algorithm;
the image display module 603 is configured to send 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 display information of the private image of the current account.
Optionally, the image management device in the cloud platform in 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;
an account identifier adding module, configured to write an identifier of the current account in an environment variable of the target container;
the debugging development module is used for acquiring the debugging information of the current account and utilizing the debugging information to debug and develop the data in the target container;
The private image acquisition module is used for creating an image of the target container when the packing request of the current account for the target container is acquired, and obtaining the private image of the current account, wherein the private image of the current account comprises the identification of the current account.
Optionally, the image management device in the cloud platform in 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;
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 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 the display information of the public mirror image to the login client side of the current account so that the current account displays the display information of the public mirror image.
In still 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 identification of the current account.
The mirror 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 currently logged in by the client.
And step two, acquiring display information of the private image aiming at the current account, which is sent by the cloud platform, according to the identification of the current account.
The account currently logged in by the client is called a current account, and the private image of the current account comprises an identification of the current account. After the client logs in the cloud platform by utilizing the current account, the cloud platform determines the private mirror image of the current account according to the identification of the current account, and sends the display information of the private mirror image of the current account to the client.
And thirdly, displaying the display information of the private image of the current account.
And 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, displays the display information of the private image of the current account on a Web page.
The cloud platform can also send the 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 authority aiming at the public mirror image, wherein the use authority comprises the use of the mirror image, and operations such as deletion, modification and the like cannot be executed on the mirror image. Only the private mirror image and the public mirror image of the current account are displayed in the login client side of the current account, the private mirror images of other accounts except the current account are not displayed, and the current account also has no editing, running and storage authority for the private mirror images of other accounts.
In still another aspect, an embodiment of the present application further provides a device for managing images in a cloud platform, where the device is applied to a client, and the device includes:
the login information acquisition module is used for acquiring login information of a current account, wherein the login information of the current account comprises the identification of the current account;
the display information acquisition module is used for acquiring display information of the private mirror image of the current account sent by the cloud platform according to the identification 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 yet 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 programs
The processor is configured to execute the computer program stored in the memory, and implement the following steps:
when a task request of a current account aiming at a specified public image is acquired, starting a target container by using the specified public image;
writing the identification of the current account in the environment variable of the target container;
obtaining the debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container;
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, 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 one of the cloud platforms in the first aspect may also be implemented.
In yet 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 programs
The processor is configured to implement the image management method in any one of the cloud platforms according to the second aspect when executing the computer program stored in the memory.
In yet another 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 following steps when executing the program stored in the memory:
obtaining login information of a current account, wherein the login information of the current account comprises identification of the current account.
And acquiring display information of the private image aiming at the current account, which is sent by the cloud platform, according to the identification of the current account.
And displaying the display information of the private 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 by the above server may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with 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 RAM (Random Access Memory ) or 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 aforementioned processor.
The processor may be a general-purpose processor, including a CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The embodiment of the application also provides a mirror image management system in the cloud platform, which comprises: cloud platform and 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 in the running process.
The client is used for realizing any image management method applied to the cloud platform of the client in the running process.
The embodiment of the application provides a mirror image management system, which comprises a cloud platform and a client,
the client 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 the cloud platform acquires a task request of a current account aiming at a specified public mirror image, 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; obtaining the debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container;
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 image of the current account. The client is electronic equipment which can be a user, in particular a personal computer, a smart phone or the like, and can also be client software running on the electronic equipment of the user.
The cloud platform can comprise a server or a server cluster, and can also be a cloud platform service module operated by the server or the server cluster.
The embodiment of the application also provides a computer readable storage medium, wherein 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 realized.
The embodiment of the application also provides a computer readable storage medium, wherein 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 second aspect is realized.
It should be noted that, in this document, the technical features in each alternative may be combined to form a solution, so long as they are not contradictory, and all such solutions are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments of the apparatus, storage medium, and system, the description is relatively simple as it is substantially similar to the method embodiments, as relevant points are found in the partial description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (8)

1. A method for managing images in a cloud platform, the method comprising:
when a task request of a current account aiming at a specified public mirror image is acquired, starting a target container by using the specified public mirror image, wherein the target container is used for running a machine learning task;
writing an identification of the current account in an environment variable of the target container;
obtaining debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container, wherein the debugging information comprises training samples;
When a 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, wherein the private mirror image of the current account comprises an identifier of the current account;
after booting the target container with the specified public image, the method further comprises:
mounting a command line tool in the target container;
when the package 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;
based on the packaging request, a container engine is called to carry out mirror image submission and mirror image pushing on the target container, so as to obtain a private mirror image of the current account;
the method further comprises the steps of:
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 image of the current account according to the identification 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 that the login client of the current account displays the display information of the private image of the current account.
2. The method of claim 1, wherein the determining the private image of the current account according to 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.
3. The method according to any one of claims 1-2, wherein the method further comprises:
and sending the display information of the public mirror image to the login client side of the current account so that the current account displays the display information of the public mirror image.
4. An image management device in a cloud platform, the device comprising:
the task request acquisition module is used for starting a target container by using the appointed public mirror image when acquiring a task request of the current account aiming at the appointed public mirror image, wherein the target container is used for running a machine learning task;
an account identifier adding module, configured to write an identifier of the current account in an environment variable of the target container;
The debugging and developing module is used for acquiring the debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container, wherein the debugging information comprises training samples;
the private image acquisition module is used for creating an image of the target container when acquiring a packaging request of the current account for the target container, so as to obtain a private image of the current account, wherein the private image of the current account comprises an identifier of the current account;
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;
based on the packaging request, a container engine is called to carry out mirror image submission and mirror image pushing on the target container, so as to obtain a private mirror image of the current account;
the apparatus further comprises:
the display request acquisition module is used for 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;
The account mirror image determining module is used for determining a private mirror image of the current account according to the identification of the current account;
the mirror image display module is used for sending display information of the private mirror image of the current account to the login client side of the current account so that the login client side of the current account displays the display information of the private mirror image of the current account.
5. The apparatus of claim 4, 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.
6. The apparatus of any of claims 4-5, wherein the mirror display module is further configured to:
and sending the display information of the public mirror image to the login client side of the current account so that the current account displays the display information of the public mirror image.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-3.
8. A system for managing images in a cloud platform, the system comprising: cloud platform and client;
the client 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 a task request of a current account for a specified public mirror image is acquired by the cloud platform, starting a target container by using the specified public mirror image, wherein the target container is used for running a machine learning task; mounting a command line tool in the target container; writing an identification of the current account in an environment variable of the target container; obtaining debugging information of the current account, and utilizing the debugging information to debug and develop the data in the target container, wherein the debugging information comprises training samples;
the client sends a packaging request of the target container to the cloud platform;
the cloud platform obtains 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, invoking a container engine to carry out mirror image submission and mirror image pushing on the target container to obtain 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;
The client displays the display information of the private image of the current account;
the cloud platform is further used for 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 image of the current account according to the identification 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 that the login client of the current account displays the display information of the private 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 CN112148419A (en) 2020-12-29
CN112148419B true 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 (20)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120128058A1 (en) * 2010-11-21 2012-05-24 Human Monitoring Ltd. Method and system of encoding and decoding media content
US11461690B2 (en) * 2016-07-18 2022-10-04 Nantomics, Llc Distributed machine learning systems, apparatus, and methods

Patent Citations (20)

* 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
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
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 (1)

* Cited by examiner, † Cited by third party
Title
Docker私有仓库管理,删除本地仓库中的镜像;涂作权;《CSDN》;第1-3页 *

Also Published As

Publication number Publication date
CN112148419A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US10419289B2 (en) System and method for configuration management service
US10002054B2 (en) Method and system for performing automatic system recovery
US11216563B1 (en) Security assessment of virtual computing environment using logical volume image
US7676816B2 (en) Systems and methods for integrating services
US11442830B2 (en) Establishing and monitoring programming environments
US11561889B2 (en) Orchestration for automated performance testing
WO2019177985A1 (en) Machine learning repository service
US11494285B1 (en) Static code analysis tool and configuration selection via codebase analysis
EP2932390A1 (en) Inversion-of-control component service models for virtual environments
US20180150365A1 (en) Disaster Recover of Managed Systems
WO2021053422A1 (en) Correspondence of external operations to containers and mutation events
US10185559B2 (en) Documentation notification
CN110515631B (en) Method for generating application installation data packet, server and computer storage medium
CN112148419B (en) Mirror image management method, device and system in cloud platform and storage medium
US10977218B1 (en) Distributed application development
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
US20230088318A1 (en) Remotely healing crashed processes
CN107203915B (en) Data storage method and device
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN114090242A (en) Model training method, device, equipment, storage medium and program product
Venema Building serverless applications with Google Cloud Run
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
CN110597777A (en) Log processing method and device
CN106598553B (en) Information card generation method, device and system

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