The invention discloses a method and a
system of a Web for accessing a Docker container, and belongs to the technical field of
cloud computing. The technical problems needing to be solved are that an independent SSH service for remote login and access still needs to be built for the Web to access the Docker container remotely, configuration of parameters such as a user name and a
password is needed, and the remote access process is tedious. By adoption of the technical scheme, the method comprises the steps of finding a to-be-accessed Docker container at a
Web page and initiating an access request by a user; judging user authority by an access support
assembly; if the user has the authority, building a token for Docker container access and returning the token to the user; by the access support
assembly, obtaining the ID of the Docker container and the
IP address of a
host machine where the Docker container is, and generating an URL address of the Docker container interface; verifying the token by a
Web access assembly, and building
Websocket connection through the URL address of the Docker container interface if the token passes the
verification; and opening the
Web page containing a console terminal of the Docker container through the
Web access assembly. The method and the
system of the Web for accessing the Docker container can still realize
authority control on Docker container access without enabling an sshd course.