fix: improved docker config

This commit is contained in:
alina 🌸 2024-08-13 01:42:52 +03:00
parent 904e298f33
commit 3bd6a6bf76
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -6,9 +6,10 @@
# docker for whatever reason decides not to use system resolver if we have 127.0.0.1 in resolv.conf
# and fallbacks to google dns (src: https://github.com/moby/moby/issues/6388#issuecomment-46343580)
# but we want it to use it. so pin the cidr used by docker and force the gateway as the default dns :D
fixed-cidr = "172.17.0.1/16";
default-gateway = "172.17.0.1";
bip = "172.17.0.1/16";
# fixed-cidr = "172.17.0.1/16";
# default-gateway = "172.17.0.1";
dns = ["172.17.0.1"];
};
virtualisation.oci-containers.backend = "docker";
}
}