feat(docker): manage /etc/docker/daemon.json (live-restore, log driver, extra options)
Adds docker_daemon_options, docker_live_restore, docker_log_driver, docker_log_max_size, docker_log_max_file and docker_daemon_restart. The file is written, before the packages are installed, only when one of the first five is set, so a host that sets none is unchanged; the role then owns the whole file. It restarts dockerd only when docker_daemon_restart is true, because a restart with live-restore off ends every container, and says so when the file applies later. A key set by both docker_daemon_options and a dedicated input, and a bad log value, stop the run before any change. Closes #375 Assisted-by: Claude Code:claude-sonnet-5-5
This commit is contained in:
1 parent
428b88a822
commit
887302b208
10 files changed
+302
-1
No files matched your search
@@ -0,0 +1,9 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
docker - Add ``docker_daemon_options``, ``docker_live_restore``, ``docker_log_driver``, ``docker_log_max_size``, ``docker_log_max_file``
|
||||
and ``docker_daemon_restart``, which manage ``/etc/docker/daemon.json``. The file is written, before the packages are installed, only when
|
||||
at least one of the first five is set, so a host that sets none is unchanged; the role then owns the whole file. It restarts dockerd only
|
||||
when ``docker_daemon_restart`` is true (default ``false``), because a restart with ``live-restore`` off ends every container, and says
|
||||
that the file applies at the next restart otherwise. A key that ``docker_daemon_options`` and a dedicated input both set, a bad
|
||||
``docker_log_driver``, ``docker_log_max_size`` or ``docker_log_max_file`` stops the run before any change.
|
||||
Reference in new issue
Block a user