CN114048170A - Method, apparatus, device and medium for searching files across containers - Google Patents

Method, apparatus, device and medium for searching files across containers Download PDF

Info

Publication number
CN114048170A
CN114048170A CN202111223168.5A CN202111223168A CN114048170A CN 114048170 A CN114048170 A CN 114048170A CN 202111223168 A CN202111223168 A CN 202111223168A CN 114048170 A CN114048170 A CN 114048170A
Authority
CN
China
Prior art keywords
search
container
search result
searching
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111223168.5A
Other languages
Chinese (zh)
Other versions
CN114048170B (en
Inventor
梁天刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing Jingling Information System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingling Information System Technology Co Ltd filed Critical Beijing Jingling Information System Technology Co Ltd
Priority to CN202111223168.5A priority Critical patent/CN114048170B/en
Publication of CN114048170A publication Critical patent/CN114048170A/en
Application granted granted Critical
Publication of CN114048170B publication Critical patent/CN114048170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The invention provides a method, a device, equipment and a medium for searching files across containers, wherein the method comprises the following steps: searching in the first container according to keywords input by an Android operating system application program in the first container and a sent searching instruction to obtain a first searching result; sending keywords and a search instruction to a container management module in a Linux operating system for creating a first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the key words and the search instruction. By transmitting the keywords to other containers except the container and the Linux operating system, the cross-container files can be searched according to the keywords.

Description

Method, apparatus, device and medium for searching files across containers
Technical Field
The present invention relates to the field of file searching, and in particular, to a method, an apparatus, a device, and a medium for searching a file across containers.
Background
In the related art, in order to enable the Linux operating system to have a better application ecology, the Android application can be supported through container schemes such as an Android and an Xdroid.
The Android in the containers runs in a Linux operating system, all files of the Android operating system can be searched in the Linux operating system, the containers are isolated from one another, files in other containers cannot be directly searched when the containers are searched, and a user needs to switch the search back and forth when searching by using a plurality of containers, so that the operation is complicated.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for searching files across containers, which are used for solving the defect that files in other containers cannot be directly searched when a container is searched in the prior art, and can ensure that a user does not need to switch back and forth when using a plurality of containers.
In a first aspect, the present invention provides a method for searching a file across containers, which is applied to an electronic device, where the electronic device includes a Linux operating system and an Android operating system deployed in the Linux operating system through a container, the Android operating system includes a search module, and the search module responds to a first container where the search module is located, and includes: searching in the first container according to keywords input by the application program in the first container and a sent search instruction to obtain a first search result; sending the keyword and the search instruction to a container management module in a Linux operating system for creating the first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the keyword and the search instruction.
The method for searching files across containers provided by the invention further comprises the following steps: sending the first search result, the second search result and the third search result to an application program in a first container where the search module is located for displaying, wherein displayed contents of the first search result, the second search result and the third search result are respectively in the first container, in a Linux operating system and in other containers; the first search result, the second search result, and the third search result have different taxonomy labels.
The method for searching files across containers provided by the invention further comprises the following steps: opening a target file in the search result according to the file path of the target file in the search result; the search results include at least one of the first search results, the second search results, and the third search results.
According to the method for searching files across containers provided by the invention, the target file in the search result according to the file path of the target file in the search result comprises the following steps: the search result is the first search result, and a target file in the first search result is opened in the first container; and/or, the search result is the second search result, an instruction for opening a target file in the second search result is sent to the container management module, and the target file in the second search result is opened in the Linux operating system; and/or, the search result is the third search result, the file path of the target file in the third search result and the container ID of the container in which the target file in the third search result is located are sent to the container management module, and the target file in the third search result is opened in the other containers according to the file path of the target file in the third search result and the container ID of the container in which the target file in the third search result is located.
In a second aspect, the present invention further provides a method for searching a file across containers, which is applied to an electronic device, where the electronic device includes a Linux operating system and an Android operating system deployed in the Linux operating system through a container, the Linux operating system includes a container management module, and the container management module is responsive to a first container created in the Linux operating system, and includes: receiving keywords and search instructions sent by a search module in the first container; searching in the Linux operating system according to the keywords and the search instruction to obtain a second search result; sending the keyword and the search instruction to search modules in containers other than the first container; receiving third search results obtained by searching in respective containers by the search modules in the other containers according to the keywords and the search instruction; sending the second search result and the third search result to a search module in the first container.
In a third aspect, the present invention further provides an apparatus for searching for a file across containers, including: the first searching unit is used for searching in the first container according to keywords input by an application program in the first container and a sent searching instruction to obtain a first searching result; the first sending unit is used for sending the keywords and the search instruction to a container management module in a Linux operating system for creating the first container; and the first receiving unit is used for receiving a second search result obtained by searching in the Linux operating system by the container management module according to the keyword and the search instruction, and a third search result obtained by searching in other containers which are created by the Linux operating system and are except the first container.
In a fourth aspect, the present invention also provides, for example, an apparatus for searching for a file across containers, including: the second receiving unit is used for receiving the keywords and the searching instruction sent by the searching module in the first container; the second searching unit is used for searching in the Linux operating system according to the keyword and the searching instruction to obtain a second searching result; a second sending unit configured to send the keyword and the search instruction to a search module in a container other than the first container; a third receiving unit, configured to receive a third search result obtained by searching, by the search module in the other container, in the respective container according to the keyword and the search instruction; a fourth sending unit, configured to send the second search result and the third search result to the search module in the first container.
In a fifth aspect, the present invention also provides an electronic device, including a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the steps of the method for searching for a file across containers according to the first aspect or the steps of the method for searching for a file across containers according to the second aspect.
In a sixth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of searching for files across containers according to the first aspect or the steps of the method of searching for files across containers according to the second aspect.
In a seventh aspect, the present invention also provides a computer program product having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the steps of the method of searching for files across containers as described in the first aspect or the steps of the method of searching for files across containers as described in the second aspect.
The invention provides a method, a device, equipment and a medium for searching files across containers, wherein a first search result is obtained by searching in a first container according to keywords input by an application program in the first container and a sent search instruction; sending keywords and a search instruction to a container management module in a Linux operating system for creating a first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the key words and the search instruction. By transmitting the keywords to other containers except the container and the Linux operating system, the cross-container files can be searched according to the keywords.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for searching a file across containers according to the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a method for searching files across containers according to the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of an apparatus for searching for a file across containers according to the present invention;
FIG. 4 is a schematic structural diagram of another embodiment of an apparatus for searching for files across containers according to the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following embodiments, the Android operating system, including Android OS issued by Google and AOSP and various derivative systems based on AOSP, such as MIUI, EMUI, One UI, etc., is described.
In the following embodiments, a Linux operating system, known as GNU/Linux operating system, such as Ubuntu, Debian, RedHat, etc. The Linux operating system is not limited to running on a physical machine, and may be an operating system hosted on another operating system, such as WSL in a Windows system.
In the following embodiments, the Linux operating system may deploy an Android operating system environment through a LXC, LXD, Docker, and other container technologies, and the container management module may implement operations such as creating, supporting, updating, and deleting an Android operating system environment in a container through such a container technology.
In the following embodiments, the application program initiating the search requirement may be an application at an application level, such as an App designed to perform a search function or a search function embedded in an App; it can also be an application at the system level, i.e. a search integrated at the system level.
In the embodiments described below, the search instructions may encompass any instructions that are relevant to the user's desire to search for relevant keywords. For example, the keyword may be a word OR words, a sentence, etc., the related search instruction may include a logical relationship (such as AND, OR, NOT, etc.) between such a behavior AND the related word OR sentence, AND the corresponding search result may be a target file associated with the keyword AND located to one OR more documents meeting the search logic; the keyword may be combined with the search instruction into one or more behaviors, for example, the search requirement may be a + b, weather of the current location, and the like, and the corresponding search result may be an understanding and processing result of the operating system executing the search function on such behaviors, for example, if the search requirement input by the user is 2+3, the Android system may directly return to 5 with the search function.
Fig. 1 is a schematic flowchart of an embodiment of a method for searching a file across containers according to the present invention. As shown in fig. 1, the method for searching files across containers includes the following steps:
s101, searching in the first container according to keywords input by an application program of the Android operating system of the first container and a sent searching instruction to obtain a first searching result.
In step S101, the search module may search for the target file in the first container according to the keyword, and if the search module searches for the target file in the first container, a first search result may be obtained. The first search result may include the name of the searched target file and a file path of the searched target file.
S102, sending keywords and a search instruction to a container management module in the Linux operating system for creating the first container.
In step S102, the search module may send the keyword to a container management module in the Linux operating system, and then the container management module searches in the Linux operating system according to the keyword.
And S103, receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in the Android operating systems of the containers except the first container, which are created by the Linux operating system, by the container management module according to the keyword and the search instruction.
In step S103, the search module receives the second search result searched by the container management module according to the keyword in the Linux operating system and receives a third search result searched by the search module of the container other than the first container in the corresponding container according to the keyword. Wherein the container management module can pass the keywords to the search module in the other container. Similarly, the second search result and the third search result may each include the name of the searched target file and the file path of the searched target file.
According to the method for searching the files across the containers, provided by the embodiment of the invention, the first container is searched according to the keywords input by the Android operating system application program in the first container and the sent search instruction to obtain a first search result; sending keywords and a search instruction to a container management module in a Linux operating system for creating a first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the key words and the search instruction. By transmitting the keywords to other containers except the container and the Linux operating system, the cross-container files can be searched according to the keywords.
In some optional embodiments, the method of searching for files across containers further comprises: sending the first search result, the second search result and the third search result to an application program in a first container where the search module is located for displaying, wherein the displayed contents of the first search result, the second search result and the third search result are respectively in the first container, in a Linux operating system and in other containers; the first search result, the second search result, and the third search result have different taxonomy labels.
In some optional embodiments, the method of searching for files across containers further comprises: opening the target file in the search result according to the file path of the target file in the search result; the search results include at least one of the first search results, the second search results, and the third search results.
Optionally, the search result is a first search result, and the target file in the first search result is opened in the first container; and/or, the search result is a second search result, an instruction for opening the target file in the second search result is sent to the container management module, and the target file in the second search result is opened in the Linux operating system; and/or sending the file path of the target file in the third search result and the container ID of the container where the target file in the third search result is located to the container management module, and opening the target file in the third search result in other containers according to the file path of the target file in the third search result and the container ID of the container where the target file in the third search result is located.
Fig. 2 is a schematic flowchart of another embodiment of a method for searching a file across containers according to the present invention. As shown in fig. 2, the method for searching files across containers includes the following steps:
s201, receiving keywords and a search instruction sent by a search module of an Android operating system in a first container.
In step S201, the description of step S201 is detailed in step S102, and is not repeated here.
And S202, searching in the Linux operating system according to the keywords and the search instruction to obtain a second search result.
S203, sending the keywords and the search instruction to the search modules in other containers except the first container.
And S204, receiving third search results obtained by searching in respective containers by the search modules in other containers according to the keywords and the search instructions.
And S205, sending the second search result and the third search result to the search module in the first container.
In steps S202 to S205, the description of steps S202 to S205 is referred to in step S103, and will not be described herein.
In some optional embodiments, the search module in the first container searches in the first container according to the keyword to obtain a first search result; the search module in the first container sends the keywords to the container management module in the Linux operating system, the container management module receives the keywords sent by the search module, and the search module searches in the Linux operating system according to the keywords to obtain a second search result; and returning the second search result to the search module in the first container; the search module sends an instruction for sending the keyword to other containers except the first container to the container management module, the container management module receives the instruction and sends the keyword to the other containers except the first container, and the search modules in the other containers search in the other containers according to the keyword to obtain a third search result and send the third search result to the search module in the first container; and the search module in the first container sends the first search result, the second search result and the third search result to the application program in the first container for displaying, wherein the display content of the first search result is in the first container, and the display content of the second search result is in the Linux operating system and the display content of the third search result is in other containers.
Fig. 3 is a schematic structural diagram of an embodiment of an apparatus for searching for a file across containers according to the present invention. As shown in fig. 3, the apparatus for searching for a file across containers includes:
the first searching unit 301 is configured to search in the first container according to a keyword input by an Android operating system application program in the first container and a sent searching instruction, so as to obtain a first searching result;
a first sending unit 302, configured to send a keyword and a search instruction to a container management module in a Linux operating system that creates a first container;
a first receiving unit 303, configured to receive a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in a container created by the Linux operating system except the first container according to the keyword and the search instruction.
Optionally, the apparatus for searching for a file across containers further includes:
the sending and displaying unit is used for sending the first search result, the second search result and the third search result to an application program in a first container where the search module is located for displaying, and the displayed contents of the first search result, the second search result and the third search result are respectively in the first container, in a Linux operating system and in other containers; the first search result, the second search result, and the third search result have different biomarker file paths.
Optionally, the apparatus for searching for a file across containers further includes:
the opening unit is used for opening the target file in the search result according to the file path of the target file in the search result; the search results include at least one file path in the first search result, the second search result, and the third search result.
Optionally, the opening unit comprises:
the first opening subunit is used for opening the target file in the first search result in the first container, wherein the search result is the first search result; and/or the presence of a gas in the gas,
the second opening subunit is used for sending an instruction for opening the target file in the second search result to the container management module and opening the target file in the second search result in the Linux operating system, wherein the search result is a second search result; and/or the presence of a gas in the gas,
and the third opening subunit is used for sending the file path of the target file in the third search result and the container ID of the container in which the target file in the third search result is located to the container management module, and opening the target file in the third search result in other containers according to the file path of the target file in the third search result and the container ID of the container in which the target file in the third search result is located.
Fig. 4 is a schematic structural diagram of another apparatus for searching for a file across containers according to another embodiment of the present invention, and as shown in fig. 4, the apparatus for searching for a file across containers includes:
a second receiving unit 401, configured to receive a keyword and a search instruction sent by a search module of an Android operating system in a first container;
the second searching unit 402 is configured to search in the Linux operating system according to the keyword and the search instruction to obtain a second search result;
a second sending unit 403, configured to send the keyword and the search instruction to the search module of the Android operating system in the container other than the first container;
a third receiving unit 404, configured to receive a third search result obtained by searching, by a search module of the Android operating system in another container, in each container according to the keyword and the search instruction;
a fourth sending unit 405, configured to send the second search result and the third search result to the search module of the Android operating system in the first container.
Fig. 5 is a schematic physical structure diagram of an electronic device provided in the present invention, and as shown in fig. 5, the electronic device may include: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call logic instructions in the memory 503 to perform the steps of the method of searching for files across containers.
A method of performing a cross-container search for files, comprising: searching in the first container according to keywords input by an application program in the first container and a sent search instruction to obtain a first search result; sending keywords and a search instruction to a container management module in a Linux operating system for creating a first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the key words and the search instruction.
The method for searching files across containers further comprises the following steps: receiving keywords and search instructions sent by a search module in a first container; searching in the Linux operating system according to the key words and the search instruction to obtain a second search result; sending keywords and search instructions to search modules in containers other than the first container; receiving third search results obtained by searching in respective containers by the search modules in other containers according to the keywords and the search instruction; and sending the second search result and the third search result to a search module in the first container.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional modules and stored in a computer readable storage medium when the software functional modules are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the steps of a method of searching for files across containers.
A method of performing a cross-container search for files, comprising: searching in the first container according to keywords input by an application program in the first container and a sent search instruction to obtain a first search result; sending keywords and a search instruction to a container management module in a Linux operating system for creating a first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the key words and the search instruction.
The method for searching files across containers further comprises the following steps: receiving keywords and search instructions sent by a search module in a first container; searching in the Linux operating system according to the key words and the search instruction to obtain a second search result; sending keywords and search instructions to search modules in containers other than the first container; receiving third search results obtained by searching in respective containers by the search modules in other containers according to the keywords and the search instruction; and sending the second search result and the third search result to a search module in the first container.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method of searching for files across containers.
A method of searching for files across containers, comprising: searching in the first container according to keywords input by an application program in the first container and a sent search instruction to obtain a first search result; sending keywords and a search instruction to a container management module in a Linux operating system for creating a first container; and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the key words and the search instruction.
The method for searching files across containers further comprises the following steps: receiving keywords and search instructions sent by a search module in a first container; searching in the Linux operating system according to the key words and the search instruction to obtain a second search result; sending keywords and search instructions to search modules in containers other than the first container; receiving third search results obtained by searching in respective containers by the search modules in other containers according to the keywords and the search instruction; and sending the second search result and the third search result to a search module in the first container.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for searching files across containers is applied to an electronic device, the electronic device comprises a Linux operating system and an Android operating system deployed in the Linux operating system through containers, the Android operating system comprises a search module, the search module is responsive to a first container where the search module is located, and the method comprises the following steps:
searching in the first container according to keywords input by the Android operating system application program in the first container and a sent search instruction to obtain a first search result;
sending the keyword and the search instruction to a container management module in a Linux operating system for creating the first container;
and receiving a second search result obtained by searching in the Linux operating system and a third search result obtained by searching in other containers except the first container established by the Linux operating system by the container management module according to the keyword and the search instruction.
2. The method for searching for files across containers of claim 1, further comprising: sending the first search result, the second search result and the third search result to an application program in an Android operating system in a first container where the search module is located for displaying, wherein the displayed contents of the first search result, the second search result and the third search result are respectively in the first container, in a Linux operating system and in other containers; the first search result, the second search result, and the third search result have different taxonomy labels.
3. The method for searching for files across containers of claim 1, further comprising:
under the condition that the search result contains the target file related to the keyword, opening the target file in the search result according to the file path of the target file in the search result; the search results include at least one of the first search results, the second search results, and the third search results.
4. The method for searching for files across containers according to claim 3, wherein the opening of the target file in the search result according to the file path of the target file in the search result comprises:
the search result is the first search result, and a target file in the first search result is opened in the first container; and/or the presence of a gas in the gas,
the search result is the second search result, an instruction for opening a target file in the second search result is sent to the container management module, and the target file in the second search result is opened in the Linux operating system; and/or the presence of a gas in the gas,
and the search result is the third search result, the file path of the target file in the third search result and the container ID of the container where the target file in the third search result is located are sent to the container management module, and the target file in the third search result is opened in the other containers according to the file path of the target file in the third search result and the container ID of the container where the target file in the third search result is located.
5. A method for searching files across containers is applied to an electronic device, the electronic device comprises a Linux operating system and an Android operating system deployed in the Linux operating system through containers, the Linux operating system comprises a container management module, the container management module is responsive to a first container created in the Linux operating system and comprises the following steps:
receiving keywords and a search instruction sent by a search module of the Android operating system in the first container;
searching in the Linux operating system according to the keywords and the search instruction to obtain a second search result;
sending the keyword and the search instruction to search modules in containers other than the first container;
receiving third search results obtained by searching in respective containers by the search modules in the other containers according to the keywords and the search instruction;
sending the second search result and the third search result to a search module in the first container.
6. An apparatus for searching for files across containers, comprising:
the first searching unit is used for searching in the first container according to keywords of an Android operating system in the first container and a sent searching instruction to obtain a first searching result;
the first sending unit is used for sending the keywords and the search instruction to a container management module in a Linux operating system for creating the first container;
and the first receiving unit is used for receiving a second search result obtained by searching in the Linux operating system by the container management module according to the keyword and the search instruction, and a third search result obtained by searching in other containers which are created by the Linux operating system and are except the first container.
7. An apparatus for searching for files across containers, comprising:
the second receiving unit is used for receiving keywords and a search instruction sent by a search module of an Android operating system in the first container;
the second searching unit is used for searching in the Linux operating system according to the keyword and the searching instruction to obtain a second searching result;
a second sending unit configured to send the keyword and the search instruction to a search module in a container other than the first container;
a third receiving unit, configured to receive a third search result obtained by searching, by the search module in the other container, in the respective container according to the keyword and the search instruction;
a fourth sending unit, configured to send the second search result and the third search result to the search module in the first container.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method of searching for files across containers of any of claims 1 to 4 or the steps of the method of searching for files across containers of claim 5.
9. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the method of searching for files across containers of any one of claims 1 to 4 or the steps of the method of searching for files across containers of claim 5.
10. A computer program product having stored thereon executable instructions, characterized in that the instructions, when executed by a processor, cause the processor to carry out the steps of the method of searching for files across containers according to any one of claims 1 to 4 or the steps of the method of searching for files across containers according to claim 5.
CN202111223168.5A 2021-10-20 2021-10-20 Method, apparatus, device and medium for searching files across containers Active CN114048170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111223168.5A CN114048170B (en) 2021-10-20 2021-10-20 Method, apparatus, device and medium for searching files across containers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111223168.5A CN114048170B (en) 2021-10-20 2021-10-20 Method, apparatus, device and medium for searching files across containers

Publications (2)

Publication Number Publication Date
CN114048170A true CN114048170A (en) 2022-02-15
CN114048170B CN114048170B (en) 2024-04-02

Family

ID=80205729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111223168.5A Active CN114048170B (en) 2021-10-20 2021-10-20 Method, apparatus, device and medium for searching files across containers

Country Status (1)

Country Link
CN (1) CN114048170B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105339931A (en) * 2013-02-08 2016-02-17 康特迈国际公司 Method and device for handling data containers
US20160188730A1 (en) * 2014-12-29 2016-06-30 Quixey, Inc. Device-Specific Search Results
CN108428200A (en) * 2018-03-16 2018-08-21 浙江大学城市学院 A kind of the electric business field patent infringement decision-making system and determination method of case-based reasioning
CN110069604A (en) * 2019-04-23 2019-07-30 北京字节跳动网络技术有限公司 Text search method, apparatus and computer readable storage medium
CN110647332A (en) * 2019-09-30 2020-01-03 北京百度网讯科技有限公司 Software deployment method and device based on container cloud
CN112100481A (en) * 2020-09-25 2020-12-18 百度国际科技(深圳)有限公司 Search method, search device, electronic device, and storage medium
US20210209180A1 (en) * 2020-09-25 2021-07-08 Baidu International Technology (Shenzhen) Co., Ltd. Search Method and Apparatus, Electronic Device and Storage Medium
CN113209633A (en) * 2021-06-09 2021-08-06 腾讯科技(深圳)有限公司 Mirror image processing method and device, electronic equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105339931A (en) * 2013-02-08 2016-02-17 康特迈国际公司 Method and device for handling data containers
US20160188730A1 (en) * 2014-12-29 2016-06-30 Quixey, Inc. Device-Specific Search Results
CN108428200A (en) * 2018-03-16 2018-08-21 浙江大学城市学院 A kind of the electric business field patent infringement decision-making system and determination method of case-based reasioning
CN110069604A (en) * 2019-04-23 2019-07-30 北京字节跳动网络技术有限公司 Text search method, apparatus and computer readable storage medium
CN110647332A (en) * 2019-09-30 2020-01-03 北京百度网讯科技有限公司 Software deployment method and device based on container cloud
CN112100481A (en) * 2020-09-25 2020-12-18 百度国际科技(深圳)有限公司 Search method, search device, electronic device, and storage medium
US20210209180A1 (en) * 2020-09-25 2021-07-08 Baidu International Technology (Shenzhen) Co., Ltd. Search Method and Apparatus, Electronic Device and Storage Medium
US20210209187A1 (en) * 2020-09-25 2021-07-08 Baidu International Technology (Shenzhen) Co., Ltd. Search method, search device, electronic device and storage medium
CN113209633A (en) * 2021-06-09 2021-08-06 腾讯科技(深圳)有限公司 Mirror image processing method and device, electronic equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱广超;史纪强;: "企业应用系统云环境迁移方案研究", 油气地球物理, no. 03, 26 July 2018 (2018-07-26) *

Also Published As

Publication number Publication date
CN114048170B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US20210319173A1 (en) Determining syntax parse trees for extracting nested hierarchical structures from text data
US20160063067A1 (en) Automatic assistance for resource reuse based on context extracted from a user workspace
CN106815031B (en) Kernel module loading method and device
US10534861B2 (en) Automated term extraction
US20180218077A1 (en) Method and apparatus for searching application and mobile terminal
CN107426041B (en) Method and device for analyzing command
CN111078481B (en) Method, device, electronic equipment and storage medium for acquiring configuration checklist
US10067753B2 (en) Application program uninstallation method and apparatus
CN110688096A (en) Method, device, medium and electronic equipment for constructing application program containing plug-in
CN110457085B (en) File processing method and device, terminal equipment and computer readable medium
CN114372256A (en) Application program running method, device, equipment and storage medium
CN111966630B (en) File type detection method, device, equipment and medium
CN113760769A (en) Test case processing method and device, electronic equipment and storage medium
US20200183981A1 (en) Resource Search Method and Related Product
CN114048170B (en) Method, apparatus, device and medium for searching files across containers
US10277615B2 (en) Maintenance of distributed computing systems
CN115309706A (en) Method, device, equipment, medium and product for updating multi-language configuration file
CN114491215A (en) Search-based method, device, equipment and storage medium for updating word stock of similar senses
US10922366B2 (en) Self-adaptive web crawling and text extraction
CN108509478B (en) Splitting and calling method of rule engine file, electronic device and storage medium
CN112711435A (en) Version updating method, version updating device, electronic equipment and storage medium
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN111753548A (en) Information acquisition method and device, computer storage medium and electronic equipment
CN108345461B (en) Application updating method and device and computer readable storage medium
CN113709154B (en) Browser security processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220407

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082

Applicant before: Beijing jingling Information System Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant