Method and device for logging in Docker container by Web end

A docker container and container technology, applied in the computer field, can solve problems such as being inflexible, not supporting direct login to Docker containers, and inability to remotely log in to the host at will, so as to improve efficiency and simplify user operations.

Active Publication Date: 2016-08-17
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF5 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 1. Shellinabox only provides a method to configure the Service through the service startup parameters, so as to configure the login parameters, but after the configuration is completed, the user cannot remotely log in to the login parameters that do not exist in the Service; that is, the host that the user can access remotely Restricted by the previous Service configuration, it is not possible to remotely log in to any host at will, which is not flexible enough
[0008] 2. Shellinabox, like the traditional SSH login method, only supports login from remote hosts, but not directly from Docker containers, which limits the complexity and work efficiency of the development, operation and maintenance of Docker containers

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for logging in Docker container by Web end
  • Method and device for logging in Docker container by Web end
  • Method and device for logging in Docker container by Web end

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0084] Example 1, the URL request is as follows:

[0085] http: / / localhost:4200 / domeos@10.11.150.71@e5e7d49bbd28@

[0086] Among them, localhost:4200 is the local host address;

[0087] Among them, domeos is the URL path prefix preset when the server starts;

[0088] Among them, "10.11.150.71" is the host address of the remote host to be accessed;

[0089] Among them, "e5e7d49bbd28" is the container ID to be accessed;

[0090] It can be seen that the host address of the remote host to be accessed is between the first and second separator @ in the URL request, and the container ID to be accessed is between the second and third separator @.

[0091] In this way, the server will automatically parse the part between the first and second delimiter @ after the preset URL prefix as the host address of the remote host to be accessed; the part between the second and third delimiter @ is the ID of the container to be accessed.

[0092] After the server finishes parsing the URL requ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for logging in a Docker container by a Web end, wherein the method comprises following steps of receiving a URL (Uniform Resource Locator) request in which the host address of a to-be-accessed remote host and a to-be-accessed container ID are carried; analyzing the URL request, thus obtaining the host address and the container ID; establishing service according to the host address and the container ID; invoking the service to execute an SSH (Secure Shell) remote login command; monitoring the SSH remote login command by the remote host through the SSH service and a port; analyzing the SSH remote login command, thus obtaining the container ID; and generating and executing a Docker container login command in which the container ID is carried. According to the method and the device, the Docker container in the remote host can be directly logged in by the Web end; the development, operation and maintenance complexity in the field of the Docker container can be reduced; the development, operation and maintenance efficiency can be improved; and a more convenient access mode is provided for a user.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for logging in to a Docker container on a Web terminal. Background technique [0002] In the process of development and maintenance in the Internet field, staff often need to log in to remote hosts and jump between different hosts in the cluster to complete daily development, maintenance, management and other work. [0003] The SSH (Secure Shell) protocol is a security protocol based on the application layer and the transport layer. It implements two levels of security verification based on passwords and secret keys. It is suitable for almost all UNIX platforms and is currently widely used. A protocol that provides security for telnet sessions and other network services. [0004] Traditional SSH remote login generally requires SSH client software such as Xshell, SecureCRT, and Putty. Users need to install these software on the terminal to log in to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L63/083H04L67/02H04L67/08
Inventor 王宝慷
Owner BEIJING SOHU NEW MEDIA INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products