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.
More on Networking and Compose
Containers on the default bridge cannot resolve each other by name. Why, and what do you do?BeginnerHow do you expose a container only to the local host, not the internet?BeginnerDesign a Compose file for web + api + postgres + redis with correct startup ordering.IntermediateFrontend must reach the API but not the database. Segment the network.IntermediateA container needs to call a service running on the Docker host.BeginnerWhen would you use `--network host`?Intermediate