Interview Prep/Docker/Networking and Compose

IPv6 is needed for containers.

IntermediateScenarioNetworking and Compose
Answer

Situation read → Docker IPv6 is off by default.

What I'd do → In daemon.json: {"ipv6": true, "fixed-cidr-v6": "2001:db8:1::/64"} (with ip6tables: true on recent versions) and for user networks docker network create --ipv6 --subnet 2001:db8:2::/64 v6net. Verify routing and firewall for the prefix.

Why → Docker must hand out routable or NAT'd v6 addresses.

Interview tip → Recent Docker releases (27+) improved IPv6 and ip6tables support.

All Docker questions Roadmap: Docker & containers

More on Networking and Compose