Container
Table of Contents
1. Working Mechanism
1.1. Prerequisites
- isolated execution environments leveraging two key kernel features: cgroups and namespaces.
- cgroups (control groups) govern and isolate resource usage for processes.
- Namespaces provide process isolation by creating virtual views of system resources.
1.2. Collation
Containers utilize both cgroups and namespaces to create isolated environments.
- Namespaces isolate: Processes, network resources, mount points, etc., creating the perception of a separate system.
- cgroups limit and manage: Resource utilization within these isolated namespaces, ensuring predictable behavior.
1.3. Caveats:
- Container security relies heavily on the Linux kernel. Kernel vulnerabilities can impact container isolation.
- While providing strong isolation, containers are not virtual machines. They share the host kernel, unlike VMs which have their own kernel.
- managing multiple containers can be a task in itself, especially in a distributed context. checkout orchestration.