305-300 無料問題集「Lpi LPIC-3 Exam 305: Virtualization and Containerization」
In the command vzctl ____________ 105 /usr/bin/apt-get install wget, which subcommand of vzctl is missing in order to install wget in the OpenVZ container 105?
正解:
exec
Explanation:
In OpenVZ virtualization, thevzctlcommand is used to manage containers. According to OpenVZ documentation, theexecsubcommand is required to execute a commandinside a running container.
The correct command syntax is:
vzctl exec 105 /usr/bin/apt-get install wget
The exec subcommand runs the specified command in the context of the container identified by its container ID (CTID), in this case105. Without exec, the command would not be executed inside the container environment.
Therefore, the missing and correct subcommand isexec.
Explanation:
In OpenVZ virtualization, thevzctlcommand is used to manage containers. According to OpenVZ documentation, theexecsubcommand is required to execute a commandinside a running container.
The correct command syntax is:
vzctl exec 105 /usr/bin/apt-get install wget
The exec subcommand runs the specified command in the context of the container identified by its container ID (CTID), in this case105. Without exec, the command would not be executed inside the container environment.
Therefore, the missing and correct subcommand isexec.