IP Library › Granted Patent US 12,106,253
Granted Patent B2
US 12,106,253 · App. 17/117,698 · Granted Oct 1, 2024

Container management method, apparatus, and device

Inventors: Wenqiang Ding (Hangzhou, CN); Juan Li (Hangzhou, CN); Qishuai Xu (Hangzhou, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06Q10/08G01N21/90G06F9/455G06F9/50G06F3/0484
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,106,253
App. No.
17/117,698
Granted
Oct 1, 2024
Kind
B2
Abstract

This application discloses a container management method, apparatus, and device. The method includes: obtaining a provisioning request that carries an identifier of a first user and an identifier of a first container image; querying and obtaining the identifier of the first container image in a container image information database of the first user; obtaining the container image based on the identifier of the first container image; and provisioning a container based on the container image.

Claims (74)

1. A method, comprising:

obtaining, by a container engine, a container provisioning request, wherein the container provisioning request carries an identifier of a first user and an identifier of a first container image;

querying, by the container engine, a container image information database corresponding to the identifier of the first user, wherein the container image information database stores a mapping relationship between the identifier of the first user and one or more container images, the one or more container images being read-only, and wherein the container image information database comprises one or more identifiers of the one or more container images associated with the identifier of the first user; and

when the identifier of the first container image exists in the container image information database:

obtaining, by the container engine, the first container image based on the identifier of the first container image; and

provisioning, by the container engine, a first container based on the first container image.

2. The method according to claim 1 , wherein the method further comprises:

before the obtaining the container provisioning request:

registering and creating, based on the identifier of the first user, the container image information database corresponding to the identifier of the first user.

3. The method according to claim 1 , wherein the obtaining the first container image comprises:

obtaining information about the first container image based on the identifier of the first container image; and

obtaining the first container image from local storage space based on the information about the first container image, and wherein the provisioning the first container comprises:

starting the first container based on the first container image.

4. The method according to claim 1 , wherein the method further comprises:

when the identifier of the first container image does not exist in the container image information database and an attribute of the first container image is private, obtaining the first container image from a private container image repository of the first user.

5. The method according to claim 1 , wherein the method further comprises:

when the identifier of the first container image does not exist in the container image information database and an attribute of the first container image is public, obtaining the first container image from a public container image repository.

6. The method according to claim 5 , wherein the method further comprises:

after the obtaining the first container image and the provisioning the first container:

generating a second container image based on the first container, wherein the second container image comprises at least one of information about the first user, an application of the first user, or a driver of the first user;

adding an identifier of the second container image to the container image information database of the first user; and

uploading the second container image to a private container image repository of the first user.

7. The method according to claim 1 , wherein the querying the container image information database comprises:

obtaining an authentication result based on the identifier of the first user; and

when the authentication result is successful, querying the container image information database corresponding to the identifier of the first user.

8. A container management device, comprising:

at least one processor; and

a memory, the memory stores at least one instruction, and the at least one processor loads and executes the at least one instruction to perform operations, the operations including:

obtaining a container provisioning request, wherein the container provisioning request carries an identifier of a first user and an identifier of a first container image;

querying a container image information database corresponding to the identifier of the first user, wherein the container image information database stores a mapping relationship between the identifier of the first user and one or more container images, the one or more container images being read-only, and wherein the container image information database comprises one or more identifiers of the one or more container images associated with the identifier of the first user; and

when the identifier of the first container image exists in the container image information database:

obtaining the first container image based on the identifier of the first container image; and

provisioning a first container based on the first container image.

9. The container management device of claim 8 , wherein the operations further include:

before the obtaining the container provisioning request:

registering and creating, based on the identifier of the first user, the container image information database corresponding to the identifier of the first user.

10. The container management device of claim 8 , wherein the obtaining the first container image based on the identifier of the first container image comprises:

obtaining information about the first container image based on the identifier of the first container image; and

obtaining the first container image from local storage space based on the information about the first container image, and wherein the provisioning the first container comprises:

starting the first container based on the first container image.

11. The container management device of claim 8 , wherein the operations further include:

when the identifier of the first container image does not exist in the container image information database and an attribute of the first container image is private, obtaining the first container image from a private container image repository of the first user.

12. The container management device of claim 8 , wherein the operations further include:

when the identifier of the first container image does not exist in the container image information database and an attribute of the first container image is public, obtaining the first container image from a public container image repository.

13. The container management device of claim 12 , wherein the operations further include:

after the obtaining the first container image and the provisioning the first container:

generating a second container image based on the first container, wherein the second container image comprises at least one of information about the first user, an application of the first user, or a driver of the first user;

adding an identifier of the second container image to the container image information database of the first user; and

uploading the second container image to a private container image repository of the first user.

14. The container management device of claim 8 , wherein the querying the container image information database comprises:

obtaining an authentication result based on the identifier of the first user; and

when the authentication result is successful, querying the container image information database corresponding to the identifier of the first user.

15. A non-transitory computer-readable storage medium comprising instructions which, when executed by a computer, cause the computer to perform operations, the operations comprising:

obtaining a container provisioning request, wherein the container provisioning request carries an identifier of a first user and an identifier of a first container image;

querying a container image information database corresponding to the identifier of the first user, wherein the container image information database stores a mapping relationship between the identifier of the first user and one or more container images, the one or more container images being read-only, and wherein the container image information database comprises one or more identifiers of the one or more container images associated with the identifier of the first user; and

when the identifier of the first container image exists in the container image information database:

obtaining the first container image based on the identifier of the first container image; and

provisioning a first container based on the first container image.

16. The non-transitory computer-readable storage medium of claim 15 , the operations further comprising:

before the obtaining the container provisioning request:

registering and creating, based on the identifier of the first user, the container image information database corresponding to the identifier of the first user.

17. The non-transitory computer-readable storage medium of claim 15 , wherein the obtaining the first container image comprises:

obtaining information about the first container image based on the identifier of the first container image; and

obtaining the first container image from local storage space based on the information about the first container image, and wherein the provisioning the first container comprises:

starting the first container based on the first container image.

18. The non-transitory computer-readable storage medium of claim 15 , the operations further comprising:

when the identifier of the first container image does not exist in the container image information database and an attribute of the first container image is private, obtaining the first container image from a private container image repository of the first user.

19. The non-transitory computer-readable storage medium of claim 15 , the operations further comprising:

when the identifier of the first container image does not exist in the container image information database and an attribute of the first container image is public, obtaining the first container image from a public container image repository.

20. The non-transitory computer-readable storage medium of claim 19 , the operations further comprising:

after the obtaining the first container image and the provisioning the first container:

generating a second container image based on the first container, wherein the second container image comprises at least one of information about the first user, an application of the first user, or a driver of the first user;

adding an identifier of the second container image to the container image information database of the first user; and

uploading the second container image to a private container image repository of the first user.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 29, 2021
From: DING, WENQIANG; LI, JUAN; XU, QISHUAI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 057021/0551 →
Priority Claims (1)
CN 201810713108.3 · Jun 29, 2018 · national
Continuity (2)
Continuation PCTCN2019085509 · May 5, 2019
Related Publication 20210097476A1 · Apr 1, 2021
Cited By (1)
US 12,506,706