PHP 8.5.2
Preview: README.Cont.md Size: 1.16 KB
//usr/share/doc/needrestart/README.Cont.md

needrestart - container support
===============================

If needrestart has found a process using obsolete binaries it checks if
the process is part of a container. If the process is part of a container
it might not be possible to restart it using Sys-V/systemd.

There are special packages (NeedRestart::CONT::*) implementing the
container detection and restarting.


NeedRestart::CONT::docker
-------------------------

Recognized by:	cgroup path (`/system.slice/docker-*.scope` || `/docker/*`)

Docker containers are ignored (needrestart 2.12+) since there are no updates
within docker containers by design.


NeedRestart::CONT::LXC
----------------------

Recognized by:	cgroup path (`/lxc/*` || `/lxc.payload/*`)

For each container which should be restarted needrestart calls
`lxc-stop --reboot --name $NAME`.

This package also supports LXD containers, which are restarted by `lxc restart
$NAME` or `lxc restart --project=$PROJECT $NAME` for containers in projects.

NeedRestart::CONT::machined
---------------------------

Recognized by:	cgroup path (`/machine.slice/machine-*.scope`)

For each container which should be restarted needrestart calls
`machinectl reboot $NAME`.

Directory Contents

Dirs: 1 × Files: 11

Name Size Perms Modified Actions
examples DIR
- drwxr-xr-x 2026-01-08 12:55:51
Edit Download
3.46 KB lrw-r--r-- 2024-12-05 11:53:51
Edit Download
1.05 KB lrw-r--r-- 2024-01-12 09:01:01
Edit Download
1.22 KB lrw-r--r-- 2022-05-17 14:59:22
Edit Download
928 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download
1.16 KB lrw-r--r-- 2022-05-17 14:59:22
Edit Download
2.40 KB lrw-r--r-- 2024-12-05 11:53:51
Edit Download
3.03 KB lrw-r--r-- 2022-05-17 14:59:22
Edit Download
785 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download
687 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download
493 B lrw-r--r-- 2024-10-15 16:06:55
Edit Download
966 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).