Process Processing Method and Apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsYufang DU, Yangyang JIANG
Life of this patent
Estimating the term…
Abstract
This application provide a method of processing a process in a container. The method is used in a physical machine, multiple containers are deployed on the physical machine, the physical machine includes a watchdog drive, and the method includes: receiving, by the watchdog drive, a first operation instruction of a first container by using a dev which is a device file, where the first operation instruction includes a first process identification PID, and the first PID represents that the first operation instruction is delivered by a first process in the first container; determining, according to the first PID, first namespace corresponding to the first container; and deleting all processes in the first container according to the first namespace.
Claims20
A method of processing a process in a container, wherein the method is used in a physical machine, multiple containers are deployed on the physical machine, the physical machine comprises a watchdog drive, and the method comprises:
- receiving, by the watchdog drive, a first operation instruction of a first container by using a dev, wherein the dev is a device file, the first operation instruction comprises a first process identification (PID), and the first PID represents that the first operation instruction is delivered by a first process in the first container;
- determining, according to the first PID, first namespace corresponding to the first container;
- and
- deleting all processes in the first container according to the first namespace.
A process processing apparatus, comprising:
- a memory, configured to store an instruction;
- and a processor, connected to the memory and configured to execute the instruction stored by the memory, and perform the following steps when the instruction is executed:
- receiving, by a drive, a first operation instruction of a first container by using a dev, wherein the dev is a device file, the first operation instruction comprises a first process identification (PID), and the first PID represents that the first operation instruction is delivered by a first process in the first container;
- determining, according to the first PID, first namespace corresponding to the first container;
- and
- deleting all processes in the first container according to the first namespace.
A non-transitory computer-readable medium storing computer instructions for processing a process in a container, that when executed by one or more processors, cause the one or more processors to perform operations comprising:
- receiving a first operation instruction of a first container by using a dev, wherein the dev is a device file, the first operation instruction comprises a first process identification (PID), and the first PID represents that the first operation instruction is delivered by a first process in the first container;
- determining, according to the first PID, first namespace corresponding to the first container;
- and
- deleting all processes in the first container according to the first namespace.
Dependencies are inferred from the claim text.