Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Containers

Enables Docker-based container runtime defaults.

Purpose

Provide a Docker-backed container runtime for workloads that still rely on Docker-specific features, with automatic image pruning and persistent state.

Entry Point

Options

core.containers.enable

Typeboolean
Defaultfalse
Exampletrue

Whether to enable container support.


Architecture / Services / Scope

When enabled, the module:

  • enables virtualisation.docker with the default Docker package,
  • enables CDI device support in the Docker daemon,
  • enables weekly automatic image pruning,
  • sets virtualisation.oci-containers.backend = "docker",
  • adds docker to core.defaultGroups, and
  • persists Docker state directories under /var/lib/docker (overlay storage, images, volumes, containers, containerd, and buildkit data).

Operational Notes / Assumptions

  • Docker is intentionally preferred because current workloads still need features not covered by Podman or podman-compose.
  • Users receive Docker access through the shared core.defaultGroups handling.