diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
index e861164920fa..4d3d5700ffca 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
@@ -114,7 +114,7 @@
If you previously used
/etc/docker/daemon.json, you need to
incorporate the changes into the new option
- virtualisation.docker.daemonConfig.
+ virtualisation.docker.daemon.settings.
diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md
index 17e1727dfbcb..966de7889373 100644
--- a/nixos/doc/manual/release-notes/rl-2205.section.md
+++ b/nixos/doc/manual/release-notes/rl-2205.section.md
@@ -41,7 +41,7 @@ In addition to numerous new and upgraded packages, this release has the followin
- The `writers.writePython2` and corresponding `writers.writePython2Bin` convenience functions to create executable Python 2 scripts in the store were removed in preparation of removal of the Python 2 interpreter.
Scripts have to be converted to Python 3 for use with `writers.writePython3` or `writers.writePyPy2` needs to be used.
-- If you previously used `/etc/docker/daemon.json`, you need to incorporate the changes into the new option `virtualisation.docker.daemonConfig`.
+- If you previously used `/etc/docker/daemon.json`, you need to incorporate the changes into the new option `virtualisation.docker.daemon.settings`.
## Other Notable Changes {#sec-release-22.05-notable-changes}
diff --git a/nixos/modules/virtualisation/docker.nix b/nixos/modules/virtualisation/docker.nix
index 80bf804cb293..e273b964f58b 100644
--- a/nixos/modules/virtualisation/docker.nix
+++ b/nixos/modules/virtualisation/docker.nix
@@ -8,8 +8,8 @@ let
cfg = config.virtualisation.docker;
proxy_env = config.networking.proxy.envVars;
- daemonConfigJson = builtins.toJSON cfg.daemonConfig;
- daemonConfigFile = pkgs.writeText "daemon.json" daemonConfigJson;
+ daemonSettingsJson = builtins.toJSON cfg.daemon.settings;
+ daemonSettingsFile = pkgs.writeText "daemon.json" daemonSettingsJson;
in
{
@@ -53,7 +53,7 @@ in
'';
};
- daemonConfig =
+ daemon.settings =
mkOption {
type = types.anything;
default = { };
@@ -188,7 +188,7 @@ in
${cfg.package}/bin/dockerd \
--group=docker \
--host=fd:// \
- --config-file=${daemonConfigFile} \
+ --config-file=${daemonSettingsFile} \
--log-driver=${cfg.logDriver} \
${optionalString (cfg.storageDriver != null) "--storage-driver=${cfg.storageDriver}"} \
${optionalString cfg.liveRestore "--live-restore" } \