A method for connecting to a Unix-like virtual container in a cloud computing platform, the Unix-like virtual container running on a host , having a network isolated from the outside of the host, and being integrated into a Linux kernel, wherein the method comprises the steps of: an apparatus designating a host port to the Unix-like virtual container , wherein the host port is on the host running the Unix-like virtual container ; the apparatus establishing a byte stream between the Unix-like virtual container and the host port, and establishing a first connection between the Unix-like virtual container and the host port based on the byte stream; and the apparatus receiving a script command through the host port, and sending the script command to the Unix-like virtual container according to the first connection, wherein the operation of receiving the script command through the host port further comprises: the apparatus establishing a hypertext transfer protocol, HTTP, connection between the host port and a browser through a hypertext transfer protocol and receiving the script command through the HTTP connection; wherein the method further comprises the steps of: - the apparatus preconfiguring a connection time threshold; - the apparatus determining whether the HTTP connection between the host port and the browser exceeds the connection time threshold; - in response to determining that the HTTP connection between the host port and the browser exceeds the connection time threshold, the apparatus disconnecting the HTTP connection; and - in response to determining that the HTTP connection between the host port and the browser does not exceed the connection time threshold, the apparatus keeping the HTTP connection. an apparatus designating a host port to the Unix-like virtual container , wherein the host port is on the host running the Unix-like virtual container ; the apparatus establishing a byte stream between the Unix-like virtual container and the host port, and establishing a first connection between the Unix-like virtual container and the host port based on the byte stream; and the apparatus receiving a script command through the host port, and sending the script command to the Unix-like virtual container according to the first connection, the apparatus establishing a hypertext transfer protocol, HTTP, connection between the host port and a browser through a hypertext transfer protocol and receiving the script command through the HTTP connection; wherein the method further comprises the steps of: - the apparatus preconfiguring a connection time threshold; - the apparatus determining whether the HTTP connection between the host port and the browser exceeds the connection time threshold; - in response to determining that the HTTP connection between the host port and the browser exceeds the connection time threshold, the apparatus disconnecting the HTTP connection; and - in response to determining that the HTTP connection between the host port and the browser does not exceed the connection time threshold, the apparatus keeping the HTTP connection. - the apparatus preconfiguring a connection time threshold; - the apparatus determining whether the HTTP connection between the host port and the browser exceeds the connection time threshold; - in response to determining that the HTTP connection between the host port and the browser exceeds the connection time threshold, the apparatus disconnecting the HTTP connection; and - in response to determining that the HTTP connection between the host port and the browser does not exceed the connection time threshold, the apparatus keeping the HTTP connection. <EOS>