Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Choosing a container engine: Docker, Podman, LXC

By updated

Improve this page

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 situationRecommended engineWhy
Beginner, learningDockerPlenty of documentation, most tutorials use it
Local developmentDocker or Podman (in French)Compose, IDE integration
Avoiding a daemon that runs as rootPodman (in French)Daemonless; rootless when an ordinary user runs it (Linux)
Nodes of a Kubernetes clustercontainerd (in French)CRI runtime, no image build
OpenShift cluster (Red Hat's Kubernetes distribution), or a runtime cut down to the strict minimumCRI-OBuilt only for Kubernetes
Full system in a containerLXC (in French) or IncusAn OS with its init (the first process, which starts the services), like a lightweight VM
Avoiding the Docker Desktop licensePodman (in French) or Docker Engine in a Linux VMPodman 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.

TermExamplesRole
Complete engineDocker, PodmanBuilds images, runs containers, provides the command line
High-level runtime for Kubernetes (CRI runtime)containerd, CRI-ORuns containers and manages images, with no build; Kubernetes calls it through the CRI
Build toolsBuildKit, 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 containersLXC, IncusA 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.

CriterionDockerPodmancontainerdCRI-OLXCIncus
Container typeApplicationApplicationApplicationApplicationSystemSystem and VM
ArchitectureDaemon (dockerd)Daemonless (Linux)*DaemonDaemonLow levelDaemon and API
Without root privilegesOptionalYes, as an ordinary user (Linux)Depends on setupDepends on setupYes (unprivileged)Yes, by default
Friendly CLICompleteDocker-compatibleBasic (ctr)No (diagnostics with crictl, in French)TechnicalGood
Image buildYes (Dockerfile)Yes (Containerfile)External (BuildKit)NoNoNo
ComposeYes (docker compose)Depends on providerYes (nerdctl compose)NoNoNo
KubernetesNo native CRI (cri-dockerd adapter)Native podsCRI runtimeBuilt for KubernetesNoNo
DocumentationAbundantGoodTechnicalTechnicalLimitedDecent
LicenseApache 2.0 (Docker Engine)Apache 2.0Apache 2.0Apache 2.0LGPLApache 2.0
* On macOS and Windows, Podman uses a VM (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.

Decision tree: if you run a full system, choose Incus or LXC. Otherwise, if it is the runtime of a Kubernetes node, choose CRI-O on OpenShift and containerd elsewhere. Otherwise, choose Podman if you must avoid the daemon and root by default. In the other cases, for an organization of 250 people or more, or width="1480" height="727" viewBox="0 0 1479.56 726.61" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="schema-conteneurs-choisir-un-moteur-en" class="schema-svg schema-graphviz" role="img" data-schema="conteneurs/choisir-un-moteur" data-charte="schema-graphviz-v1" data-moteur="graphviz@9.0.0" data-empreinte="89871fbfdef97f8c" data-schema-profil="diagnostic"0M in revenue or more, choose Docker Desktop under a paid license, Docker Engine in a Linux VM or Podman; otherwise Docker Engine or Docker Desktop.What do you needto run?A full system(init, several services)?Incus or LXC yes Is it the runtimeof a Kubernetes node? no Is the clusterOpenShift? yes Do you need to avoid a daemonand root by default? no CRI-O yes containerd no Podman yes Organization of 250 people or more,or $10M in revenue or more? no Docker Desktop under a paid license,Docker Engine in a Linux VMor Podman yes Docker Engine(or Docker Desktop) no Startquestionengine to chooseAnswer
Five questions, in order, to go from the need to the engine. Source · SVG
Esc to close, + and − to zoom, scroll to move around. 100 %

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.

ToolTypeSupported enginesSuited to
Portainer CEWeb interfaceDocker, Swarm, KubernetesTeams, multi-environment management
LazyDockerTUI (terminal)DockerCommand-line developers who want something visual
Podman DesktopDesktop applicationPodman, Docker, KubernetesDevelopers on a local workstation
Docker DesktopDesktop applicationDockerDevelopers 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

6 questions
6 min
70% to pass

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

FAQ: frequently asked questions