Closed ulidtko closed 1 month ago
Thanks for reporting. This was also reported in moby/moby, under https://github.com/moby/moby/issues/40275.
The following PR introduced a new subnet allocator which doesn't suffer from this issue. It was released in v27.0, on June 25.
Note that:
Thanks so much for accurate response @akerouanton
Very briefly. With IPv6 enabled, and this entry in
default-address-pools
(daemon.json
):Dockerd fails to start, crashes with
fatal error: runtime: out of memory
.Crash log: ubQ795Mx.txt
As can be easily found in the crash log, OOM happens while in
ipamutils.splitNetworks
:https://github.com/moby/libnetwork/blob/3797618f9a38372e8107d8c06f6ae199e1133ae8/ipamutils/utils.go#L92-L93
The config shown,
{"base":"fd0d:0ce5::/48", "size": 80}
— denotes 2³² /80 subnets. This is over 4 billion subnets.Related issue: https://github.com/moby/moby/issues/40275
docker version