摘要 |
<p>A method for starting an application program in a Linux container includes: creating, by a container start process, a container according to a command entered by a user, creating a first application start process, and putting the first application start process into the container for execution; obtaining, by the first application start process, according to the command entered by the user, the number N of application programs to be started, and creating N-1 second application start processes, where N is a positive integer not less than 2; and starting, in the container, by the first application start process and the N-1 second application start processes, the N application programs to be started, where each application start process starts one application program. An embodiment of the present invention further provides a corresponding Linux system. In technical solutions of the present invention, when a container is created, a plurality of application start processes is created, and each application start process starts one application program, so that when the container is created, a plurality of application programs can be started simultaneously.</p> |