ThinkNix: Disable docker ipv6
This commit is contained in:
@ -112,7 +112,8 @@
|
|||||||
# - Disabling this prevents containers from having internet connection. DNS issue?
|
# - Disabling this prevents containers from having internet connection. DNS issue?
|
||||||
# ${dockercli} network create -o "com.docker.network.bridge.enable_ip_masquerade"="false" ${network}
|
# ${dockercli} network create -o "com.docker.network.bridge.enable_ip_masquerade"="false" ${network}
|
||||||
|
|
||||||
${dockercli} network create --ipv6 --gateway="2000::1" --subnet="2000::/80" ${network}
|
# ${dockercli} network create --ipv6 --gateway="2000::1" --subnet="2000::/80" ${network}
|
||||||
|
${dockercli} network create ${network}
|
||||||
else
|
else
|
||||||
echo "${network} already exists in docker"
|
echo "${network} already exists in docker"
|
||||||
fi
|
fi
|
||||||
@ -213,14 +214,14 @@
|
|||||||
# setSocketVariable = true;
|
# setSocketVariable = true;
|
||||||
# };
|
# };
|
||||||
daemon.settings = {
|
daemon.settings = {
|
||||||
ipv6 = true;
|
# ipv6 = true;
|
||||||
fixed-cidr-v6 = "2001::/80";
|
# fixed-cidr-v6 = "2001::/80";
|
||||||
|
|
||||||
dns = [
|
dns = [
|
||||||
# TODO: Does this circumvent my DNS for each container?
|
# TODO: Does this circumvent my DNS for each container?
|
||||||
# It might improve gitea actions though...
|
# It might improve gitea actions though...
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
"2001:4860:4860::8888"
|
# "2001:4860:4860::8888"
|
||||||
|
|
||||||
# TODO: Might prevent containers from having DNS?
|
# TODO: Might prevent containers from having DNS?
|
||||||
# "127.0.0.1"
|
# "127.0.0.1"
|
||||||
|
Reference in New Issue
Block a user