Getting a successful ping from a docker container on an IPv6 only server

Simple question:

I would like to run the following command on a Debian 11 server that is IPv6 only, and achieve a successful ping:
docker run -it --rm registry.ipv6.docker.com/library/alpine ping6 -c 2 ipv6test.google.com

The equivalent on an IPv4 machine (that works out of the box) would be:
docker run -it --rm alpine ping -c 2 ipv6test.google.com

Can someone explain what should be done without connecting the container to the host. I have spend two days configuring docker, following all kinds of guides and docker documentation and I am lost.

Assume docker has been fully installed and works otherwise as a charm.