ContainerOS is the official Alibaba Cloud operating system optimized for container workloads and fully compatible with the Kubernetes ecosystem. Built on Alibaba Cloud Linux, it provides stronger security, faster startup, and streamlined system services and packages, with cloud-native components integrated by default so your nodes are ready to use.
Supported scenarios
-
ContainerOS applies to node pools in an ACK managed cluster, where the cluster version is 1.24 or later and the container runtime is containerd. For instructions, see Create an ACK managed cluster. To upgrade a cluster, see Manually upgrade a cluster.
-
ContainerOS does not apply to Arm-based nodes and does not support instance types with local disks.
ContainerOS overview
When you deploy containerized applications, cloud-native components such as container runtimes and Kubernetes let you focus on application development instead of the details of the underlying infrastructure. To serve many use cases, traditional operating systems bundle numerous user-mode tools, packages, and system services. The result is a bloated system that starts slowly. The wide range of packages and scattered versions also create significant O&M challenges.
To address the limitations of traditional operating systems in cloud-native environments and improve the user experience, Container Service for Kubernetes (ACK) designed ContainerOS specifically for container workloads. Compared with a traditional operating system, ContainerOS is lighter and more modular, and it starts and runs containers faster. It also provides stronger security and needs fewer resources, which makes it suitable for cloud computing and large-scale deployments.
Features
|
Feature |
Description |
|
Image streamlining |
ContainerOS includes only the packages and system services that Kubernetes pods need to run. System-wide consolidation and optimization significantly reduce startup time. ContainerOS ships approximately 210 system packages, whereas traditional operating systems such as Alibaba Cloud Linux 3, Alibaba Cloud Linux 2, and CentOS preinstall approximately 600 packages by default.
In addition, ContainerOS does not support Python and does not provide direct SSH login. ContainerOS lets you focus on developing and running your workloads without dealing with operating system issues. |
|
Fast startup |
End-to-end optimization significantly improves OS startup speed and reduces node scale-out time in the ACK pipeline. ContainerOS simplifies the OS startup process and preloads container images for the components that the cluster control plane requires. This reduces the delay caused by image pulls at node startup. Combined with ACK control-plane optimizations, node scale-out becomes even faster. In the following figure, the P90 node-ready time for a 1,000-node ContainerOS scale-out is only 53 seconds. Compared with CentOS and the Alibaba Cloud Linux 2 custom image optimization solution, ContainerOS has a clearer advantage. Important
The data in this example is theoretical only. Actual data may vary slightly because of product feature optimizations. Refer to your own environment for actual results. |
|
Security hardening |
The root file system is read-only. Only the /etc and /var directories are writable, which meets basic system configuration needs. This design follows the immutable infrastructure principle for cloud-native environments and effectively prevents an escaped container from tampering with the host file system. ContainerOS also prevents you from logging on to the system directly to run operations that may be untraceable. For non-routine O&M needs, it provides a dedicated administrative container. |
|
Atomic upgrade |
Following the cloud-native immutable infrastructure principle, ContainerOS does not provide the Every image passes strict internal testing before release. Compared with the uncertainty of upgrading individual RPM packages in traditional operating systems, image-level testing and release better ensure system stability after an upgrade. |
Benefits
|
Benefit |
Description |
|
Vertical optimization for container workloads |
ContainerOS is vertically optimized for container workloads, with fast startup, security hardening, and an immutable root file system. These features improve performance and simplify O&M and management across the cluster. They also keep the nodes in a cluster highly consistent. |
|
Fast node scale-out |
By combining ACK control-plane optimizations with internal OS optimizations, ContainerOS significantly increases node scale-out speed. Node scale-out accounts for more than 90% of the total time that ACK node auto scaling takes. With ContainerOS, the auto scaling experience for node pools improves significantly. |
|
OS maintainability |
Working with the ACK control plane, ContainerOS supports continuous updates to Kubernetes and other system software, CVE vulnerability patching, and on-demand image releases. This improves OS maintainability. Compared with the Alibaba Cloud Linux 2 custom image solution, which also preloads images to speed up node startup, ContainerOS provides official maintenance and CVE coverage. This significantly reduces the work required to maintain and upgrade custom OS images and to fix major issues. In addition, joint optimization with ACK significantly reduces the node downtime caused by O&M operations and keeps your workloads running smoothly. |
|
Alibaba Cloud Linux compatibility |
ContainerOS 3 is based on Alibaba Cloud Linux 3 and uses the 5.10 kernel series. ContainerOS 4 is based on Alibaba Cloud Linux 4 and uses the 6.6 kernel series. The maintenance cycle of each version matches the maintenance cycle of the Alibaba Cloud Linux version that it is based on. |
Security notes
ContainerOS applies the following design principles to strengthen its security.
Operating system security
|
Feature |
Description |
|
|
Minimal execution environment |
ContainerOS includes only the packages and system services that container workloads require, approximately 210 packages in total. Fewer packages mean fewer CVEs and a smaller attack surface for the operating system itself. ContainerOS removes packages with high CVE counts, such as binutils, Python, openssh, and tcpdump. It also reduces the scripting language execution environment to a minimum and does not support Python, Perl, or Ruby script execution. |
|
|
ContainerOS node O&M |
ContainerOS uses a minimal execution environment and an immutable root file system to increase security. Performing O&M on ContainerOS nodes differs from managing a standard Linux operating system. For instructions, see Maintain ContainerOS nodes. |
|
|
Immutable root file system |
ContainerOS does not support package management software such as yum. Only rpm-ostree is supported, which makes OS changes and rollbacks traceable. The root file system |
|
|
Read-only system disk |
The system disk is set to read-only mode and cannot store data, which protects the system from tampering and persistent attacks. To ensure that the system starts and runs as expected, attach an additional data disk. User data is stored on the data disk, which keeps it separate from the system disk. By default, the data disk is mounted to the |
Read-only system disk, removed shell interpreters, and the new Bootstrap container are supported only in ContainerOS 3.5.0 and later. |
|
Removed shell interpreters |
Shell script interpreters such as /bin/bash and /bin/sh are removed from the system. This blocks shell script execution and reduces the risk of malicious script attacks. |
|
|
New Bootstrap container |
ContainerOS provides a Bootstrap container that runs custom user data scripts before the main container starts. The Bootstrap container exits automatically after its initialization tasks are complete, which avoids security risks to the main system and your workload containers. |
|
Infrastructure security
Package system based on Alibaba Cloud Linux: Alibaba Cloud Linux is a Linux server operating system distribution developed by Alibaba Cloud, and it is the most widely used distribution on Alibaba Cloud. ContainerOS is based on Alibaba Cloud Linux and is heavily optimized for cloud use cases. It reuses the years of experience that Alibaba Cloud Linux has in building and delivering packages and images. Each image also passes OS baseline tests and ACK integration tests before release to ensure its availability and security.
Maintenance cycle
The maintenance cycle of ContainerOS matches that of the Alibaba Cloud Linux major version it is based on. The following table lists the support periods of each version:
|
ContainerOS version |
Base operating system |
End of development support |
End of maintenance support |
End of extended support (end of support date) |
|
ContainerOS 4 |
Alibaba Cloud Linux 4 |
June 2030 |
June 2035 |
June 30, 2038 |
|
ContainerOS 3 |
Alibaba Cloud Linux 3 |
March 2026 |
March 2031 |
March 31, 2034 |
The following list describes what each support phase covers:
-
Development support phase: Accepts requests for new hardware enablement, major new features, and feature enhancements, and provides support such as bug fixes and security vulnerability fixes.
-
Maintenance support phase: Provides support such as bug fixes and security vulnerability fixes.
-
Extended support phase: Provides high-priority bug fixes and fixes for high-risk and critical security vulnerabilities that Alibaba Cloud approves after evaluation.
For details about maintenance cycles, see What is Alibaba Cloud Linux.
Monitor ContainerOS image releases and keep your images up to date. Complete an operating system upgrade or migration before the end of support date to continue receiving security updates and maintenance support. For information about image updates, see ContainerOS image release notes.
Billing
ContainerOS is a free image. ContainerOS images are available in ACK node pools at no charge. Alibaba Cloud also provides long-term support for this operating system at no charge. For details about the support scope and periods, see Maintenance cycle.
However, when you use a ContainerOS image, you are charged for other resources such as vCPUs, memory, storage, Internet bandwidth, and snapshots. For billing details about other resources, see Billing overview.
References
-
For instructions about using ContainerOS as the operating system for a node pool, see Use ContainerOS.
-
For information about ContainerOS image releases, see ContainerOS image release notes.