nixpkgs/nixos/doc/manual/release-notes
Maximilian Bosch 7d443d378b
nixos/oci-containers: support rootless containers & healthchecks
Closes #259770
Closes #207050

The motivation for the former is to not execute the container as root,
so you don't have to `sudo -i` to perform podman management tasks.

The idea behind healthchecks is to be able to keep the unit in the
activating state until the container is healthy, only then then unit is
marked as active.

The following changes were necessary:

* Move the ctr-id into `/run/${containerName}` to make podman can
  actually write to it since it's now in its RuntimeDirectory.

* Make `sdnotify` option configurable (`healthy` for healthchecks that
  must pass, default remains `conmon`).

* Set Delegate=yes for `sdnotify=healthy` to make sure a rootless
  container can actually talk to sd_notify[1].

* Add a warning that lingering must be enabled to have a `systemd --user`
  instance running which is required for the cgroup support to work
  properly.

* Added a testcase for rootless containers with both conmon and
  healthchecks.

[1] https://github.com/containers/podman/discussions/20573#discussioncomment-7612481
2025-02-27 11:08:33 +01:00
..
release-notes.md 25.05 is Warbler 2024-11-14 09:10:54 -08:00
rl-1310.section.md
rl-1404.section.md
rl-1412.section.md
rl-1509.section.md
rl-1603.section.md
rl-1609.section.md
rl-1703.section.md
rl-1709.section.md
rl-1803.section.md
rl-1809.section.md
rl-1903.section.md
rl-1909.section.md
rl-2003.section.md
rl-2009.section.md ankisyncd: remove 2024-09-11 13:53:06 +08:00
rl-2105.section.md
rl-2111.section.md treewide: fix typos 2025-02-22 02:02:07 +01:00
rl-2205.section.md nixos/release-notes: Fix broken option links 2024-12-06 11:42:26 +01:00
rl-2211.section.md grafana: 10.4.2 -> 11.0.0 2024-05-14 19:03:25 +02:00
rl-2305.section.md unifi-video: drop 2024-10-01 15:58:19 +01:00
rl-2311.section.md treewide: fix typos 2025-02-22 02:02:07 +01:00
rl-2405.section.md treewide: fix typos 2025-02-22 02:02:07 +01:00
rl-2411.section.md z3: move relnotes to 25.05 2025-01-18 11:37:16 -08:00
rl-2505.section.md nixos/oci-containers: support rootless containers & healthchecks 2025-02-27 11:08:33 +01:00