Run an ordinary Linux container on a Linux host.
Which statement about the container kernel is correct?
A normal Linux container does not boot a separate kernel; its processes use the host Linux kernel with isolation mechanisms.
Detailed explanation
Incorrect. Containers do not each reserve a physical CPU.
Incorrect. Containers do not each reserve a physical CPU.
Incorrect. A standard container does not start another hypervisor.
Incorrect. A standard container does not start another hypervisor.
Incorrect. The kernel inside an image is not normally booted by the container runtime.
Incorrect. The kernel inside an image is not normally booted by the container runtime.
Correct. Container processes share the host Linux kernel.
Correct. Container processes share the host Linux kernel.
Try it yourself
An example you can run in a temporary verification environment.
readlink /proc/self/ns/pidExpected result
現在processが属するPID namespace識別子Key points
- Shared kernel
- Namespaces
- OS-level virtualization
Notes
- Environment: Linux namespace対応kernel
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.