- Containers in OpenStack
- Pradeep Kumar Singh Madhuri Kumari
- 279字
- 2021-07-02 21:17:22
Container components
Linux containers are typically comprised of five major components:
- Kernel namespaces: Namespaces are the major building blocks of Linux containers. They isolate various types of Linux resources such as the network, processes, users, and the filesystem into different groups. This allows different groups of processes to have completely independent views of their resources. Other resources that can be segregated include the process ID space, the IPC space, and semaphore space.
- Control groups: Control groups, also known as CGroups, limit and account for different types of resource usage such as the CPU, memory, disk I/O, network I/O, and so on, across a group of different processes. They help in preventing one container from resource starvation or contention caused by another container, and thereby maintains QoS.
- Security: Security in containers is provided via the following components:
- Root capabilities: This will help in enforcing namespaces in so-called privileged containers by reducing the power of root, in some cases to no power at all.
- Discretionary Access Control (DAC): It mediates access to resources based on user-applied policies so that inpidual containers can't interfere with each other and can be run by non-root users securely.
- Mandatory Access Controls (MAC): Mandatory Access Controls (MAC), such as AppArmor and SELinux, are not required for creating containers, but are often a key element to their security. MAC ensures that neither the container code itself nor the code running in the containers has a greater degree of access than the process itself requires. This way, it minimizes the privileges granted to rogue or compromised processes.
- Toolsets: Above the host kernel lies the user-space toolsets such as LXD, Docker, and other libraries, which help in managing containers:
推薦閱讀
- Ansible Configuration Management
- Oracle SOA Governance 11g Implementation
- Java開發(fā)技術(shù)全程指南
- HBase Design Patterns
- 物聯(lián)網(wǎng)與云計算
- 計算機網(wǎng)絡(luò)技術(shù)基礎(chǔ)
- Windows內(nèi)核原理與實現(xiàn)
- 系統(tǒng)安裝與重裝
- 西門子變頻器技術(shù)入門及實踐
- Photoshop行業(yè)應(yīng)用基礎(chǔ)
- 筆記本電腦電路分析與故障診斷
- 自適應(yīng)學(xué)習(xí):人工智能時代的教育革命
- Embedded Linux Development using Yocto Projects(Second Edition)
- 信息系統(tǒng)安全保障評估
- 微控制器的選擇與應(yīng)用