Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system of Web for accessing Docker container

A docker container and access request technology, applied in the field of cloud computing, can solve the problems of cumbersome remote access process, occupying Docker host resources, etc., to achieve the effect of easy use, reduce configuration difficulty, and save resources

Active Publication Date: 2017-12-19
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF5 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to provide a method and system for Web access to Docker containers to solve the problem that in the prior art Web remote access to Docker containers still needs to create a separate SSH service for remote login access, and parameters such as user names and passwords need to be configured. The remote access process is relatively cumbersome and occupies resources of the Docker host machine

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 system of Web for accessing Docker container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] A method for web access to Docker containers of the present invention uses an access support component and a web access component, which are respectively responsible for providing support functions for Docker container access and the establishment and access functions of Web access connections; the method includes the following steps:

[0043] (1) The user finds the Docker container to be accessed on the web page and initiates an access request;

[0044] (2) Judging user permissions through the access support component; if there is no permission, the connection will be terminated and a failure message will be returned; if there is permission, the Docker container access token (Token, representing the right to perform certain operations) will be created. Object) and return the token to the user;

[0045] (3) Obtain the ID of the Docker container and the IP address of the host machine by accessing the supporting components, and generate the URL address of the Docker container in...

Embodiment 2

[0049] A method for web access to Docker containers of the present invention uses an access support component and a web access component, which are respectively responsible for providing support functions for Docker container access and the establishment and access functions of Web access connections; the method includes the following steps:

[0050] (1) The user finds the Docker container to be accessed on the web page and initiates an access request;

[0051] (2) Judge user permissions through the access support component; if there is no permission, the connection will be terminated and a failure message will be returned; if there is permission, a token for this Docker container access will be created and the token will be returned to the user;

[0052] (3) Obtain the ID of the Docker container and the IP address of the host machine by accessing the supporting components, and generate the URL address of the Docker container interface;

[0053] (4) Verify the token through the web acc...

Embodiment 3

[0057] A method for web access to Docker containers of the present invention uses an access support component and a web access component, which are respectively responsible for providing support functions for Docker container access and the establishment and access functions of Web access connections; the method includes the following steps:

[0058] (1) The user finds the Docker container to be accessed on the web page and initiates an access request;

[0059] (2) Judge user permissions through access support components; if there is no permission, the connection will be terminated and a failure message will be returned; if there is permission, the token for this Docker container access will be created, and when the token for Docker container access is created, set Token expiration time, and return the token to the user;

[0060] (3) Obtain the ID of the Docker container and the IP address of the host machine by accessing the supporting components, and generate the URL address of the...

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 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.

Description

Technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method and system for accessing Docker containers from the Web. Background technique [0002] Docker (Docker is an LXC-based high-level container engine open sourced by PaaS provider dotCloud, the source code is hosted on Github, based on the Go language and open source in compliance with the Apache2.0 protocol) is an open source application container engine that allows developers to package them The application and dependent packages of the software are placed in a portable container, and then released to any popular Linux machine, which can also be virtualized. It can be compared to a virtual machine, but it is not a virtual machine itself. [0003] The traditional implementation of the remote access container function is based on the idea of ​​a virtual machine, which starts an sshd process in each container. Due to the particularity of the process with the container PID ...

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/08H04L63/0815H04L67/02H04L67/141
Inventor 张烨
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products