feat(docker): add opt-in boot and shutdown units for hosts that run Docker with live-restore
docker_start_missed installs a boot unit that starts the containers dockerd's restore pass skipped after a reboot of the whole host. docker_stop_at_shutdown installs a unit that ends container processes at shutdown while the network and NFS shares are still up, so a container holding an NFS mount no longer stalls the shutdown. Both default to false and do nothing without /usr/bin/docker. Refs #369 Assisted-by: Claude Code
This commit is contained in:
1 parent
4a7189c067
commit
567e9cca7c
16 files changed
+917
-6
No files matched your search
@@ -0,0 +1,11 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
docker - Add the opt-in inputs ``docker_start_missed`` and ``docker_stop_at_shutdown`` (both default ``false``, so a host that does not
|
||||
set them is unchanged) for a host that runs Docker with ``live-restore``. ``docker_start_missed`` installs a boot unit that starts the
|
||||
containers dockerd's restore pass skipped after a reboot of the whole host (exited with code 255 during this boot, restart policy
|
||||
``unless-stopped`` or ``always``; one stopped on purpose stays stopped), with ``docker_start_missed_settle_seconds`` (default 30).
|
||||
``docker_stop_at_shutdown`` installs a unit that ends every container process at shutdown while the network and NFS shares are still up
|
||||
(SIGTERM, then SIGKILL after ``docker_stop_at_shutdown_timeout`` seconds, default 30, never ``docker stop`` or ``docker kill``), so that
|
||||
a container holding an NFS mount does not stall the shutdown while the network is already down. Setting an input back to ``false``, or ``docker_remove``,
|
||||
removes its unit and script. Both units do nothing when ``/usr/bin/docker`` does not exist.
|
||||
Reference in new issue
Block a user