What is containerisation?
Containerisation packages an application together with everything it needs to run, then starts it in an isolated slice of a shared Linux kernel.
What problem does containerisation solve?
It ends the gap between "it works on my machine" and production. An application depends on a language runtime, system libraries, configuration files and particular versions of each. Packing all of it into an image means the exact same bytes run on a laptop, in the test pipeline and on a production server, whatever else is installed on the host. Upgrading the host operating system no longer breaks the application, and two applications needing different library versions can run side by side.
How does a container work under the hood?
Through two Linux kernel features: namespaces for isolation and control groups for limits. Namespaces give a process its own view of process IDs, network interfaces, mount points, host name and users, so it believes it is alone on the machine. Control groups (cgroups) cap and account for its CPU time, memory, disk input and output and process count. There is no second kernel and no emulated hardware, which is why a container starts in a fraction of a second. You can see the building blocks with standard tools:
unshare --fork --pid --mount-proc --uts bash -c 'hostname box1; hostname; ps -e | head -3' systemd-cgls --no-pager | head -20 cat /sys/fs/cgroup/system.slice/memory.max
What is inside an image?
A stack of read-only file system layers plus metadata saying which command to run. Each instruction in a build file adds a layer, and layers are shared between images, so twenty images built on the same Debian base store that base once. At run time, a thin writable layer sits on top; anything written there disappears with the container, which is why persistent data goes into volumes mounted from the host. Images are stored in registries and identified by a content digest, so a given digest always means exactly the same bytes.
Which tools are involved?
| Role | Common tools |
|---|---|
| Build images | Docker build, Buildah, BuildKit |
| Run containers on one host | Docker Engine, Podman, containerd with nerdctl |
| Low-level runtime | runc, crun |
| Store and share images | Self-hosted registry, Harbor |
| Orchestrate many hosts | Kubernetes, K3s, Nomad |
| System containers | LXC, Incus, Proxmox VE containers |
All of them follow the Open Container Initiative formats, so an image built with one tool runs with another.
How are containers different from virtual machines?
A virtual machine carries its own kernel on virtual hardware; a container shares the host kernel. That makes containers lighter and faster to start, while virtual machines give stronger isolation and can run a different operating system. On a dedicated server you can combine both: run Proxmox VE for a few virtual machines and run containers inside them, or run containers straight on the host for the least overhead. Our Containers or virtual machines article compares them in detail.
What does containerisation not do?
It does not make an application stateless, secure or scalable by itself. Databases in containers still need careful storage and backups; a process running as root in a container is still a risk if it escapes; and a single host is still a single point of failure. Use rootless runtimes where possible, keep images small and patched, and back up the volumes, not the containers.
Why run containers on bare metal?
For density and predictable performance. Without a hypervisor in between, every core and every NVMe operation goes straight to your workloads. A machine such as ESSENTIAL-L with 16 and 128 GB DDR5 can host dozens of small services, a build pipeline and a database side by side for $106.20 a month. Our Kubernetes and Docker article describes the two most common ways to run them, and CI runners and build farms covers build-heavy use.
Machines for container hosts
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-S | AMD Ryzen 7 9700X | 8 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $46.20 |
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-XL | AMD EPYC TURIN 9455 | 48 | 128 GB | 2x 1.92 TB SSD NVMe | 1 Gbps unmetered | $212.40 |
| BUSINESS-3 2024 | AMD EPYC 4464P | 12 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $141.60 |
| BUSINESS-4 2026 | AMD EPYC 4585PX | 16 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $212.40 |
Related pages
Containers or virtual machines
Containers share the host kernel; virtual machines bring their own. Isolation, density, start times and when to combine both on one dedicated server.
Read moreKubernetes and Docker
Docker builds and runs containers; Kubernetes schedules them across machines. What each does, where Compose is enough, and running both on dedicated servers.
Read moreCI runners and build farms
High clock Ryzen and many-core EPYC machines for CI runners, container builds and compile farms that finish faster.
Read moreHypervisor
The software layer that divides one physical server into many virtual machines: type 1 and type 2, KVM, hardware extensions and sizing.
Read moreQuestions and answers
Do containers need a hypervisor?
No. Containers use Linux kernel features directly, so they run on bare metal with no virtualisation layer. You can also run them inside virtual machines if you want both.
Are containers secure?
They isolate well for most uses, but share the host kernel. Run containers as non-root users, keep images patched and use a virtual machine boundary for untrusted code.
Where should container data be stored?
In volumes mounted from the host file system. The writable layer of a container disappears when it is removed.
Can Docker images run with Podman?
Yes. Both follow the Open Container Initiative image format, so the same image runs under Docker, Podman or containerd.
Is there a practical limit on containers per host?
Often hundreds, limited by memory and the workloads themselves rather than by the container technology, which adds very little overhead per container.