Skip to content

Instantly share code, notes, and snippets.

@russelldavies
Created February 6, 2024 15:46
Show Gist options
  • Save russelldavies/781fc3cf02f4b64b87a9a9f44d0ffc49 to your computer and use it in GitHub Desktop.
Save russelldavies/781fc3cf02f4b64b87a9a9f44d0ffc49 to your computer and use it in GitHub Desktop.
Docker IPv6
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8::/64",
"experimental": true,
"ip6tables": true,
"default-address-pools":[
{"base": "172.17.0.0/16", "size": 24 },
{"base": "2001:db8:1::/64", "size": 80 }
],
"dns": [
"2a00:1098:2c::1",
"2a01:4f9:c010:3f02::1",
"2a00:1098:2b::1"
]
}
@russelldavies
Copy link
Author

At the bottom of each compose.yaml file add:

networks:
  default:
    enable_ipv6: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment