To learn or to develop, use Docker. If Docker's daemon, a service that runs as root, bothers you, look at Podman. For the runtime of a Kubernetes node, use containerd or CRI-O. For a full system inside a container, one that behaves like a small virtual machine, use LXC and Incus. This lesson gives the criteria behind each of these choices and a decision tree to settle your own case. There is no command to run here: each engine has its own guide, which the lesson points you to.
Prerequisites
You have read Runtime, engine, orchestrator: who does what?, which shows on a Debian 13 machine how runc, containerd, Docker, Podman and Kubernetes stack on top of each other. You therefore know that a container is a process isolated by the kernel, that a low-level runtime (runc, crun) reads an OCI bundle to start it, and that an engine (containerd, CRI-O, Podman, Docker Engine) drives that runtime. This lesson does not prove any of that again, it uses it to compare tools.
What you will learn
- Choose a container engine for a given need and justify your choice.
- Tell an engine, a runtime, a build tool and a system container apart.
- Say when Docker Desktop becomes paid and which alternatives exist.
- Explain why Kubernetes uses containerd or CRI-O rather than Docker.
- Recognize the cases where a system container (LXC, Incus) fits better than an application container.
Quick recommendation
This table gives, for each common situation, the engine to look at first. Find the row that looks like your case, then read the section about that engine further down.
| Your situation | Recommended engine | Why |
|---|---|---|
| Beginner, learning | Docker | Plenty of documentation, most tutorials use it |
| Local development | Docker or Podman (in French) | Compose, IDE integration |
| Avoiding a daemon that runs as root | Podman (in French) | Daemonless; rootless when an ordinary user runs it (Linux) |
| Nodes of a Kubernetes cluster | containerd (in French) | CRI runtime, no image build |
| OpenShift cluster (Red Hat's Kubernetes distribution), or a runtime cut down to the strict minimum | CRI-O | Built only for Kubernetes |
| Full system in a container | LXC (in French) or Incus | An OS with its init (the first process, which starts the services), like a lightweight VM |
| Avoiding the Docker Desktop license | Podman (in French) or Docker Engine in a Linux VM | Podman has no commercial license; Docker Engine is free software (Apache 2.0) |
With no particular constraint, start with Docker. Images are portable from one engine to another: you can move to Podman or containerd later without rebuilding your images.
Engine vs runtime vs build tools vs system container
These nine tools are not all of the same nature, which causes confusion when you compare them. The previous lesson placed each one in its layer; the table splits the engine layer differently, with the vocabulary of this page.
| Term | Examples | Role |
|---|---|---|
| Complete engine | Docker, Podman | Builds images, runs containers, provides the command line |
| High-level runtime for Kubernetes (CRI runtime) | containerd, CRI-O | Runs containers and manages images, with no build; Kubernetes calls it through the CRI |
| Build tools | BuildKit, Buildah, Kaniko (archived by Google in June 2025, continued by Chainguard in a fork, a copy of the project maintained separately) | Build images (see the build guide) |
| System containers | LXC, Incus | A full OS in a container |
The CRI (Container Runtime Interface) is the interface through which the kubelet, the Kubernetes agent installed on each node, asks a runtime to start containers. Watch the word: the previous lesson classed containerd and CRI-O among the engines, like Docker and Podman, because they all drive a low-level runtime (runc or crun). Here, the table separates them: Docker and Podman build images and offer a complete command line, whereas containerd and CRI-O only run containers for Kubernetes. A low-level runtime remains underneath in all four cases.
Which of the six tools should you choose?
Each engine is presented the same way: what it brings, its limits, and the case where you would choose it. The detailed guides cover installation and commands.
Docker, the de facto standard
Docker made containers mainstream in 2013. Its ecosystem is very rich: a public image registry (Docker Hub), Docker Compose for applications made of several containers, and widespread integration in IDEs and CI/CD tools.
Docker comes in two forms that you need to tell apart, because the license is not the same. Docker Engine is the service that runs the containers (the daemon, dockerd) together with its command line. It is free software (Apache 2.0 license). Docker Desktop is an application that bundles Docker Engine in a Linux VM, with IDE integrations and optional Kubernetes. On macOS and Windows, the simplest option is Docker Desktop. Docker Engine can also run in a Linux VM that you administer (which is what the training does, see installing Docker Engine) or in WSL 2, the Windows Subsystem for Linux, with no Desktop license. On Linux you usually install Docker Engine alone.
Docker Desktop is paid for commercial use in an organization with 250 employees or more, or $10 million or more in annual revenue, as well as for public sector organizations. Only one of the two thresholds is enough. It remains free for personal use, education, non-commercial open source projects and companies below both thresholds (official terms).
On the security side, the daemon runs as root by default. A mode without root (rootless) exists, but it is not the standard configuration. Membership of the docker group gives privileges equivalent to root on the machine, which matters on a shared server.
Choose Docker to learn, for local development, and when the team needs abundant documentation. The Docker guide covers installation, the CLI, volumes, networks and security.
Podman, security and compatibility
Podman is an alternative to Docker created by Red Hat. It has no daemon: each command starts its own processes. Started by an ordinary user on Linux, it runs without root (this is the rootless mode), which answers the criticism made of Docker's root daemon. Its commands mirror Docker's, and you can often replace docker with podman in your scripts.
It builds images, since podman build relies on Buildah (in French). It manages pods in the Kubernetes sense, and it imposes no commercial license.
Its limits: an ecosystem less mature than Docker's, and a Compose that goes through an external provider. podman compose delegates to docker-compose or to podman-compose, with partial compatibility depending on the stack. On macOS and Windows, Podman needs a VM created by podman machine, like Docker Desktop.
Choose Podman when security comes first (regulated environments), to avoid the Docker Desktop license, or to prepare for Kubernetes with pods. The Podman guide (in French) covers installation, pods, rootless mode and migration from Docker.
Which runtime for Kubernetes: containerd or CRI-O?
Docker and Podman are complete engines. containerd is a runtime: it runs containers and manages images, with no build and no friendly interface (its ctr CLI is basic). Docker uses it internally, and the project is hosted by the CNCF (Cloud Native Computing Foundation). CRI-O goes further in cutting things down: it is designed exclusively for Kubernetes. The kubelet calls it through the CRI, like containerd, and it makes no sense outside a cluster. Red Hat uses it in OpenShift.
On a cluster, the choice is rarely personal: the Kubernetes distribution often imposes its runtime. When you can choose, start from containerd. CRI-O is the choice on OpenShift, or when you want a runtime limited to the strict minimum.
To use containerd on the command line with Docker habits, install nerdctl, a CLI compatible with Docker's (a few commands and options are not implemented) that drives containerd and reads Compose files. To build images, containerd goes through nerdctl, BuildKit or Buildah. The containerd guide (in French) covers installation, configuration and Kubernetes integration.
LXC, system containers
LXC (Linux Containers) does not create application containers but system containers: where Docker starts a process, your application, LXC starts a complete OS with its init, its services and its shell. It is a set of tools and a library, older than Docker, that drive the kernel's namespaces and cgroups.
Its strengths: unprivileged containers, where root inside the container maps to an unprivileged identifier on the host thanks to user namespaces, fine-grained resource control, and a simple path to migrate workloads from VMs. Its limits: a lower-level tool, no Dockerfile and no image layers, a steeper learning curve.
Choose LXC to lightly virtualize complete systems or to run several services in the same container. The LXC guide (in French) covers installation and the creation of system containers.
Incus, a manager built on LXC
Incus is a container and virtual machine manager built on LXC. It is a community fork of LXD, Canonical's manager, developed by members of the team that created LXD. It adds a REST API and clustering to LXC.
It manages containers and VMs (through QEMU), creates unprivileged containers by default, and provides ready-to-use images (Ubuntu, Debian, Alpine). Its ecosystem is smaller than Docker's, and it is a poor fit for application containers.
Choose Incus for an infrastructure that combines containers and VMs, or as a lightweight alternative to Proxmox. The Incus guide covers installation, container and VM management, and clustering.
Detailed comparison table
The table puts the six tools side by side on the criteria that come up in a team's choice: container type, architecture, privileges, CLI comfort, build, Compose, Kubernetes, documentation and license. Read it by column to get a sense of one tool, by row to compare one criterion. The note below it covers the macOS and Windows case.
| Criterion | Docker | Podman | containerd | CRI-O | LXC | Incus |
|---|---|---|---|---|---|---|
| Container type | Application | Application | Application | Application | System | System and VM |
| Architecture | Daemon (dockerd) | Daemonless (Linux)* | Daemon | Daemon | Low level | Daemon and API |
| Without root privileges | Optional | Yes, as an ordinary user (Linux) | Depends on setup | Depends on setup | Yes (unprivileged) | Yes, by default |
| Friendly CLI | Complete | Docker-compatible | Basic (ctr) | No (diagnostics with crictl, in French) | Technical | Good |
| Image build | Yes (Dockerfile) | Yes (Containerfile) | External (BuildKit) | No | No | No |
| Compose | Yes (docker compose) | Depends on provider | Yes (nerdctl compose) | No | No | No |
| Kubernetes | No native CRI (cri-dockerd adapter) | Native pods | CRI runtime | Built for Kubernetes | No | No |
| Documentation | Abundant | Good | Technical | Technical | Limited | Decent |
| License | Apache 2.0 (Docker Engine) | Apache 2.0 | Apache 2.0 | Apache 2.0 | LGPL | Apache 2.0 |
podman machine).
Decision tree
The tree asks five questions. Start at the top and follow the yes or no arrows to a blue box, which names the engine to choose. The first question rules out system containers. The second isolates the Kubernetes node, and the third, asked only in that case, separates OpenShift (CRI-O) from other clusters (containerd). The fourth separates Podman and Docker. The last one applies the Docker Desktop license thresholds, whatever the operating system.
The tree gives a starting point, not a verdict. It does not detail the case of public sector organizations, which fall under the paid Docker Desktop license whatever their size. A team can use one engine for development and another in production without contradiction, as long as the images are the same.
Your turn
A company with 300 employees and $8 million in annual revenue has its teams develop on macOS workstations and deploys on a Kubernetes cluster. Which engine do you install on the workstations, which runtime runs on the nodes, and what can cost money?
A hint
There are two places to look: the development workstations and the cluster nodes. Reread the Docker Desktop license.
I have tried: show the answer
On the workstations you need an engine inside a VM, because macOS has no Linux kernel: Docker Desktop, Podman with podman machine, or Docker Engine in a Linux VM. With 300 employees, the company is above the 250-employee threshold: Docker Desktop is paid for it, even with $8M in revenue, whereas Podman has no commercial license and Docker Engine, in a Linux VM, stays free. On the nodes, the runtime is containerd (or CRI-O on OpenShift), never Docker directly since Kubernetes 1.24. The images built on the workstations work on the nodes thanks to the OCI standard.
Your turn
A school wants to give each trainee a small disposable Linux machine, with systemd, SSH and several services, all hosted on a single server. Does Docker fit, and if not, what do you choose?
A hint
A Docker container starts a single main process. What does a system container start, and what does the trainee want: an application or a machine?
I have tried: show the answer
Docker is designed for one main process per container: it is not meant to start systemd and several services together as on a machine. A system container starts a complete OS with its init, so each trainee gets a full machine, as with a lightweight VM. You choose Incus (or LXC for the low level). Docker becomes possible again if each service runs in its own container, but then it is no longer a machine to work on.
Complementary tools: graphical interfaces
The command line remains the reference tool, but it is not mandatory. An interface helps if you prefer to see your containers rather than list them, if you manage dozens of them, or if you work with colleagues who are less comfortable in a terminal.
Portainer CE (in French) is a web interface. LazyDocker (in French) is a TUI (Text User Interface), a text-mode interface inside the terminal. Podman Desktop (in French) is a graphical application. Docker Desktop, Docker's application described above, also has its own graphical interface.
| Tool | Type | Supported engines | Suited to |
|---|---|---|---|
| Portainer CE | Web interface | Docker, Swarm, Kubernetes | Teams, multi-environment management |
| LazyDocker | TUI (terminal) | Docker | Command-line developers who want something visual |
| Podman Desktop | Desktop application | Podman, Docker, Kubernetes | Developers on a local workstation |
| Docker Desktop | Desktop application | Docker | Developers on macOS and Windows |
Key points
- Docker is the usual starting point for learning and for local development. Docker Desktop is paid from 250 employees or $10M in annual revenue; Docker Engine stays free.
- Podman reuses most of Docker's commands. It has no daemon, and it runs without root when an ordinary user starts it on Linux.
- containerd and CRI-O are high-level runtimes for Kubernetes nodes: they run containers without building images. Since Kubernetes 1.24, Docker is no longer driven directly.
- LXC and Incus run a full system in a container, unprivileged by default with Incus.
- Thanks to the OCI standard, a Docker image runs on Podman, containerd and CRI-O. Networking, volumes and security contexts can still differ from one engine to another.
- To choose, answer in order: full system or application, Kubernetes node or not, root daemon acceptable or not, then the Docker Desktop license if your organization reaches its thresholds.
- A team can use two engines, Docker in development and containerd in production, with the same images.
Knowledge check
Six questions, drawn from a bank of ten, to check that you can match a need to an engine and justify the choice.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Result saved on this device. It will be sent to your account at the next sync. Sync now
Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
Continue the course: Exam: run an image without an engine
A new full quiz with random questions
Work again only on the questions you missed
FAQ: frequently asked questions
CLI compatibility
# Most commands are identical
podman run -d docker.io/library/nginx:1.30.7@sha256:7fad6c0dff97965adbddf28027d934b111fc0221a554315dc274712f3fba24d3
podman ps
podman build -t my-image .
# Alias to keep the same commands
alias docker=podman
What works directly
| Item | Compatibility |
|---|---|
| Docker Hub images | Full |
| Dockerfile | Yes (the Containerfile name works too) |
| docker-compose.yml | Through podman compose, which delegates to an external provider (partial compatibility) |
| Volumes, networks | Similar syntax, behavior sometimes differs |
| Environment variables | Identical |
Minor differences
- Podman uses multiple registries by default (not only Docker Hub)
- The socket is different (
/run/podman/podman.sockvs/var/run/docker.sock) - Some advanced Docker options may differ
Why it works
Docker and containerd use the same image format, defined by the Open Container Initiative:# With Docker
docker build -t my-app:1.0 .
docker tag my-app:1.0 registry.example.com/my-app:1.0
docker push registry.example.com/my-app:1.0
# With containerd (through ctr or nerdctl)
ctr images pull registry.example.com/my-app:1.0
nerdctl run registry.example.com/my-app:1.0
The OCI standard
| Specification | Defines |
|---|---|
| OCI Image Format | Structure of images (layers, manifest) |
| OCI Runtime Spec | How to run a container |
| OCI Distribution Spec | How to push/pull images |
Why this change?
The kubelet, the Kubernetes agent on each node, talks to runtimes through an interface, the CRI:- containerd and CRI-O implement the CRI natively;
- Docker does not: up to Kubernetes 1.23, a built-in adapter,
dockershim, translated the calls.
dockershim to translate CRI calls into calls to the Docker API, and the project chose to stop doing so.What it changes
| Aspect | Impact |
|---|---|
| Docker images | Still work (OCI format) |
| Dockerfile | No change |
| docker build | Keeps working |
| K8s runtime | To change: use containerd or CRI-O |
In practice
Your Docker images work without modification. Only the runtime on the Kubernetes nodes changes.→ Official Kubernetes FAQ on dockershimUnprivileged vs Rootless
| Mode | Mechanism | Result |
|---|---|---|
| Rootless (Docker/Podman) | The daemon runs without root | Containers without host privileges |
| Unprivileged (LXC/Incus) | User namespaces + idmap | Container root = unprivileged UID on the host |
How it works in Incus
# Create a container (unprivileged by default)
incus launch images:ubuntu/26.04 my-container
# Check the UID mapping
incus exec my-container -- cat /proc/self/uid_map
# 0 1000000 1000000000
This line reads: UID 0 in the container maps to UID 1000000 on the host, over a range of 1000000000 UIDs. The range depends on /etc/subuid and /etc/subgid: if these files define a range for root, Incus uses its first 65536 identifiers. Without these files, it assumes 1000000000 identifiers starting at 1000000.Security
If an attacker gets root inside the Incus container and then escapes from it, they end up with the rights of an unprivileged user on the host. This limits the impact of a container escape, without preventing it.→ Incus security documentationWho can use it for free?
| Use | Free? |
|---|---|
| Personal use | Yes |
| Education | Yes |
| Non-commercial open source projects | Yes |
| Small businesses | Yes* |
| Large companies | Paid |
| Public sector organizations | Paid |
Paid subscriptions
Large organizations buy a Pro, Team or Business subscription. Prices change: see the official license page below.Free alternatives
# On macOS
# Option 1: Colima (Docker Engine in a Lima VM)
brew install colima docker
colima start
# Option 2: Podman + Podman Desktop
brew install podman
podman machine init && podman machine start
→ Official Docker Desktop licenseWhy nerdctl?
containerd is the runtime of many Kubernetes clusters, but its native CLI (ctr) remains basic:# ctr CLI (complex)
ctr images pull docker.io/library/nginx:1.30.7@sha256:7fad6c0dff97965adbddf28027d934b111fc0221a554315dc274712f3fba24d3
ctr run docker.io/library/nginx:1.30.7@sha256:7fad6c0dff97965adbddf28027d934b111fc0221a554315dc274712f3fba24d3 nginx-ctr
# nerdctl CLI (familiar)
nerdctl pull docker.io/library/nginx:1.30.7@sha256:7fad6c0dff97965adbddf28027d934b111fc0221a554315dc274712f3fba24d3
nerdctl run -d -p 80:80 docker.io/library/nginx:1.30.7@sha256:7fad6c0dff97965adbddf28027d934b111fc0221a554315dc274712f3fba24d3
Supported features
| Command | nerdctl support |
|---|---|
run, exec, logs |
Yes |
build (Dockerfile) |
Yes (through BuildKit, which must be running) |
compose up/down |
Yes |
| Volumes, networks | Yes |
| Pulling all platforms | Yes (nerdctl pull --all-platforms) |
Installation
# Linux
wget https://github.com/containerd/nerdctl/releases/download/v2.4.2/nerdctl-full-2.4.2-linux-amd64.tar.gz
wget https://github.com/containerd/nerdctl/releases/download/v2.4.2/SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS
sudo tar -xzf nerdctl-full-2.4.2-linux-amd64.tar.gz -C /usr/local
# Optional alias
alias docker=nerdctl
When to use nerdctl?
- You have containerd (Kubernetes) and want a friendly CLI
- You want to drive containerd directly, without installing Docker Engine
- You want to build your images with BuildKit from a Dockerfile
Application container (Docker, Podman)
# One process = one container
FROM node:26.13.1-alpine3.24@sha256:6bd9ab43c0ec0190ca7b2d193906cb8b7edf6e7f4afa43ddeccd6452710bffb5
COPY app.js .
CMD ["node", "app.js"] # ONE single process
- Runs one main process
- No init system (no systemd)
- Microservices philosophy
- Ephemeral by nature
System container (LXC, Incus)
# A complete OS in the container
incus launch images:ubuntu/26.04 my-light-vm
incus exec my-light-vm -- systemctl status
# → systemd is running, several services are possible
- Runs a complete OS (init, services, users)
- Looks like a VM but shares the kernel
- Ideal for migrating VM workloads
- Persistent by nature
Comparison
| Aspect | Application | System |
|---|---|---|
| Processes | A single one | Several (init) |
| systemd | No | Yes |
| SSH into the container | Anti-pattern | Normal |
| Use case | Microservices, CI/CD | VM migration, traditional servers |
| Tools | Docker, Podman | LXC, Incus |
docker-compose.yml files with Podman in several ways, with partial compatibility depending on the provider and your stack.Option 1: podman-compose
# Installation on Debian 13
sudo apt install podman-compose
# Usage (same subcommands as docker-compose)
podman-compose up -d
podman-compose logs -f
podman-compose down
Option 2: Docker-compatible socket
# Enable the Docker-compatible Podman socket
podman system service --time=0 &
export DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock
# Then use docker-compose as usual
docker-compose up -d
Option 3: the podman compose command
podman compose is a thin wrapper around an external provider, docker-compose or podman-compose, which you must install. If both are present, docker-compose takes precedence. Options and arguments are passed through to the provider unchanged.podman compose up -d
Compatibility
Podman does not implement Compose itself: the behavior depends on the provider and its version. Runpodman compose --help to see what your provider accepts, and test your file before migrating a stack.→ Podman guide (in French)