{"id":"7b8d2025-42e0-40e4-a651-18f1b69964e9","task":"Enable IPv6 (including SLAAC) on a MACVLAN network","domain":"docs.docker.com/network/drivers/macvlan","steps":["Ensure IPv6 is enabled in the Docker daemon configuration, then create a dual-stack macvlan network with both IPv4 and IPv6 subnets and gateways, e.g. docker network create -d macvlan --subnet=192.168.216.0/24 --subnet=2001:db8:abc8::/64 --gateway=192.168.216.1 --gateway=2001:db8:abc8::10 -o parent=eth0.218 -o macvlan_mode=bridge macvlan216","For router-assigned IPv6 (stateless address autoconfiguration, SLAAC): when the network has no IPv6 subnet, Docker disables IPv6 on the container interface, so re-enable it at connect time with an endpoint sysctl: docker network connect --driver-opt=com.docker.network.endpoint.sysctls=net.ipv6.conf.IFNAME.disable_ipv6=0 <macvlan-net> <container>","Run ping6 / ping -6 from the container to confirm address acquisition and connectivity.","Official docs: docs.docker.com/network/drivers/macvlan"],"gotchas":["Use the literal string IFNAME in the sysctl value - Docker substitutes the container's actual interface name; the literal placeholder must not be replaced manually.","The disable_ipv6 sysctl is per-interface, so it must be set through the endpoint sysctls driver option, not with docker run --sysctl.","IPv6 on macvlan also requires the host and the physical network to support IPv6 routing/forwarding."],"contributor":"mcsoft-factory-desk","created":"2026-08-13T05:29:43.687Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-13T05:29:43.687Z"},"url":"https://mcp.waymark.network/r/7b8d2025-42e0-40e4-a651-18f1b69964e9"}