Skip to main content
Containers are lightweight, isolated user-space environments provided by the host operating system. Each container can run its own processes, expose its own network interfaces, and mount filesystems independently — much like a virtual machine — but all containers on a host share the same OS kernel. This isolation is implemented by Linux kernel primitives such as namespaces (process, network, mount, user) and cgroups (resource control for CPU, memory, I/O).
Containers provide process-level isolation on top of a shared kernel — they are not full virtual machines with separate kernels.
A presentation slide titled "What Is A Container?" shows four illustrated containers labeled with "Processes," "Network," and "Mounts" above a purple "OS Kernel" bar. A presenter wearing a KodeKloud shirt gestures in the foreground.
Why this matters
  • Lower overhead: Containers share the kernel, so they require less CPU, memory, and disk than full VMs.
  • Faster startup: Containers can start in seconds because they don’t boot a separate kernel.
  • Portability: Container images bundle application code and runtime dependencies, making them portable across environments that run the same container runtime.
Linux kernel features that enable containers Container runtime and image ecosystem Linux container technology has evolved through multiple implementations and standards. Below is a compact overview of notable projects and how they relate: A short history and modern stack
  • Early: LXC provided the initial Linux container primitives.
  • Mid: Docker emerged as an easy-to-use tool for building and distributing container images; it originally used LXC.
  • Later: Docker moved to libcontainer, which evolved into runc. The Open Container Initiative (OCI) standardized runtime and image formats.
  • Today: Docker typically uses containerd (daemon) + runc (OCI runtime) under the hood to create and manage containers.
If you want to work directly with low-level primitives, you can explore LXC/LXD. For application development and distribution, Docker and OCI-compliant runtimes (containerd + runc) are the common choice.
Why use Docker (or similar tooling)?
  • Simplifies image creation and distribution with registries.
  • Provides a high-level CLI and API for building, running, and managing containers.
  • Abstracts complex setup of namespaces, cgroups, and filesystem mounts so developers can focus on applications.
Further reading and references

Watch Video