From 4b628fee5dd1ac1076666b9348558fda4132d60d Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 10 Oct 2023 17:21:41 +0200 Subject: [PATCH] docs: Docker IPv6 --- modules/docker.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/docker.nix b/modules/docker.nix index b0da037..89e8cb7 100644 --- a/modules/docker.nix +++ b/modules/docker.nix @@ -12,6 +12,21 @@ # As we use btrfs, we enable the according storageDriver option. storageDriver = "btrfs"; + # IPv6 support. + # https://search.nixos.org/options?channel=23.05&show=virtualisation.docker.daemon.settings + # https://docs.docker.com/config/daemon/ipv6/#use-ipv6-for-the-default-bridge-network + # TODO: See notes in Jinja-Compose/proxy.yml.jinja2 why this is not yet ready to use. +# daemon.settings = { +# # Enable IPv6 networking on the default network. +# ipv6 = true; +# # Assign a subnet to the default bridge network, enabling dynamic IPv6 address allocation. +# fixed-cidr-v6 = "2001:db8:1::/64"; +# # Enable additional IPv6 packet filter rules, providing network isolation and port mapping. +# # This parameter requires experimental to be set to `true`. +# ip6tables = true; +# experimental = true; +# }; + # Run `docker system prune -f ${autoPrune.flags}` every week. autoPrune.enable = true; autoPrune.dates = "weekly";