By default, a docker container is behind NAT, and thus has no IPv6.
If the host has IPV6, and you want IPv6 inside the docker docker container, in the container startup, use
--network host
so for example:
docker run -it --network host ubuntu:latest /bin/bash
... and then the docker container has the same IP addresses as the host, thus also IPv6.