Container login method, apparatus, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsSheng Qian WANG, Lei Peng, Zhong Hua Zhu
Life of this patent
Estimating the term…
Abstract
A container login method, a container login apparatus, and a storage medium are provided. In an example embodiment, a target container login request from a browser is received; a first connection between a server and the browser is established based on the target container login request; an address of a control node corresponding to a container cluster in which a target container is located is obtained based on an identifier of the container cluster; and a second connection between the server and the target container is established based on the address of the control node and an identifier of the target container, to log in to the target container.
Claims20
A method for logging in to a container, applied to a server, the method comprising:
- receiving a target container login request from a browser, the target container login request comprising an identifier of a target container and an identifier of a container cluster in which the target container is located;
- establishing a first connection between the server and the browser based on the target container login request;
- obtaining, based on the identifier of the container cluster, an address of a control node corresponding to the container cluster;
- and
- establishing a second connection between the server and the target container based on the address of the control node and the identifier of the target container, to log in to the target container.
A container login apparatus, applied to a server, comprising:
- at least one memory operable to store program code;
- and
- at least one processor operable to read the program code and operate as instructed by the program code, the program code comprising:
- receiving code configured to cause at least one of the at least one processor to receive a target container login request from a browser, the target container login request comprising an identifier of a target container and an identifier of a container cluster in which the target container is located;
- first establishment code configured to cause at least one of the at least one processor to establish a first connection between the server and the browser based on the target container login request;
- obtaining code configured to cause at least one of the at least one processor to obtain, based on the identifier of the container cluster, an address of a control node corresponding to the identifier of the container cluster;
- and
- second establishment code configured to cause at least one of the at least one processor to establish a second connection between the server and the target container based on the address of the control node and the identifier of the target container, to log in to the target container.
A non-transitory computer readable storage medium, storing instructions that are executable by at least one processor to perform a method for logging in to a container, the method comprising:
- receiving a target container login request from a browser, the target container login request comprising an identifier of a target container and an identifier of a container cluster in which the target container is located;
- establishing a first connection between a server and the browser based on the target container login request;
- obtaining, based on the identifier of the container cluster, an address of a control node corresponding to the container cluster;
- and
- establishing a second connection between the server and the target container based on the address of the control node and the identifier of the target container, to log in to the target container.
Dependencies are inferred from the claim text.