Operating Systems and Embedded Software · Virtualisation
Containerisation
Also known as containerization, containers, OCI containers, Docker containers
Packaging an application with its dependencies into an isolated, portable unit (a container) that runs as ordinary processes on a shared host kernel, using kernel features such as namespaces and control groups for isolation and resource limits.
Explanation
On Linux, a container is a set of processes placed in their own namespaces and in control groups (cgroups). Namespaces give the processes a private view of global resources such as process IDs, mounts and network interfaces. Cgroups limit and account for CPU, memory and other resources. An image bundles the application and its file system, so the same artefact runs identically on development machines, CI servers and target hardware of the same architecture.
The Open Container Initiative (OCI), formed under the Linux Foundation in 2015, standardises the formats through its Runtime, Image and Distribution specifications, so images built with one toolchain can run on any compatible runtime. In software-defined vehicles, containers are used to deploy and update individual services independently of the base operating system.
Containers share the host kernel, so they are less strongly isolated than virtual machines, and a kernel vulnerability affects every container on the host. Real-time or safety-related workloads need extra configuration and justification.
How it works
A container image consists of layered file-system archives and a configuration describing the entry point, environment and resource needs. A runtime unpacks the image into a root file system bundle, creates namespaces, applies cgroup limits and security profiles, and starts the entry process. Registries store and distribute images, and orchestrators decide where containers run and restart them on failure.
Automotive applications
- Deploying and updating vehicle services independently
- Packaging perception or logging stacks for edge compute
- Reproducible build and test environments
- Multi-tenant application platforms in infotainment
Example
A fleet-data service is delivered as an OCI image for arm64. On the vehicle's central computer, a runtime starts it with a 256 MB memory limit and its own network namespace. An update replaces only this container and leaves the base Linux image untouched.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- About the Open Container Initiative (opens in a new tab)
“The Open Container Initiative (OCI) is a lightweight, open governance structure (project), formed under the auspices of the Linux Foundation”
- namespaces(7): overview of Linux namespaces (opens in a new tab)
“One use of namespaces is to implement containers.”
- cgroups(7): Linux control groups (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.