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

Docker container-based log acquisition method and apparatus

A docker container and container technology, applied in the computer field, can solve problems such as inability to use log files, inability to distinguish log files, etc.

Active Publication Date: 2017-02-08
MINSHENG BANKING CORP
View PDF1 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a log acquisition method and device based on a Docker container, which solves the technical problem that in the prior art log acquisition method, the log files output by each container cannot be distinguished, and the log files cannot be effectively used.

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
  • Docker container-based log acquisition method and apparatus
  • Docker container-based log acquisition method and apparatus
  • Docker container-based log acquisition method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] It should be understood that the term "and / or" used herein is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and / or B, which may mean that A exists alone, and A and B exist simultaneously. B, there are three situations of B alone. In addition, the chara...

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 Docker container-based log acquisition method and apparatus. The method comprises the steps of receiving a container creation instruction input by a user, wherein the container creation instruction carries identifier information of a host; sending the container creation instruction to the host according to the identifier information of the host to enable the host to create a Docker container, creating a folder corresponding to a container root directory, creating a host root directory and a corresponding target address on the host, and mounting a folder corresponding to the container root directory into the target address corresponding to the host root directory, wherein the container creation instruction carries container folder mounting parameters, and the corresponding target address comprises an identity code of the Docker container; sending a container starting instruction to the host, thereby enabling the Docker container of the host to write generated logs in the folder corresponding to the container root directory in a classified manner; and obtaining a folder corresponding to the Docker container from the target address according to the identity code of the container in the target address, thereby obtaining the logs in the folder.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a method and device for acquiring logs based on a Docker container. Background technique [0002] The container-based virtualization technology represented by Docker is the current hotspot of virtualization technology. Container technology realizes lightweight virtualization by isolating processes and resources. Docker is an open source application container engine that provides a solution for rapid and automated deployment of applications. Using Docker, you can quickly create and start a container using the image where the application is located. After the container is created and running, the application is deployed. Multiple Docker containers can be deployed on a physical machine, and each Docker container is isolated from each other. This physical machine is generally called a host machine. [0003] During the running of the application, a l...

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
IPC IPC(8): G06F17/30
CPCG06F16/16G06F16/1815
Inventor 常晓宇郭瑞田斌倪顺元
Owner MINSHENG BANKING CORP
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